Hi, Am I totally off-base in expecting the following to work? macro_rules! gen_mod( ( $name:ident { $( $fun:item )+ } ) => ( mod $name { $( $fun )+ } ) )
gen_mod!( MyMod { fn Foo() -> u32 {} fn Bar() -> u32 {} } ) Gives me this error: test.rs:21:4: 21:5 error: Local ambiguity: multiple parsing options: built-in NTs item ('fun') or 1 other options. test.rs:21 }
_______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev