Closed s97712 closed 4 years ago
I tried concat namespace using following code
macro_rules! call { ($path: expr) => { [<$path::call>]() }; }
And get compile error
error: expected `::`, found `]` --> .../src/lib.rs:20:11 | 20 | [<$path::call>]() | ^^^^^^^^^^^^^^^ expected `::`
Consider supporting namespace ?
I would prefer to stick to concatenating identifiers, but someone could make a different crate focused on paths.
FWIW you don't need a proc macro to concatenate paths if you use $($seg:ident)::* instead of expr.
$($seg:ident)::*
I tried concat namespace using following code
And get compile error
Consider supporting namespace ?