Skip to content

can not make functions public with compose! #10

@vitiral

Description

@vitiral

I can't seem to make a function public

prop_compose! {
    pub fn arb_raw_name()(ref s in GEN_NAME_RE) -> String {                                                                                                                                                       
        s.to_string()                                                                                                                                                                                             
    }                                                                                                                                                                                                             
} 

has this error when compiled:

error: no rules expected the token `pub`
  --> src/test_name.rs:40:5
   |
40 |     pub fn arb_raw_name()(ref s in GEN_NAME_RE) -> String {

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.0-wishlistThis issue proposes breaking changes we'd like in a 2.0 releasefeature-requestThis issue is requesting new functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions