Why this :
macro_rules! a_macro { ($($a:tt)+) => ($($a)+); } fn main() { let x:u32 = 1; let y:u32 = a_macro!(-x); }
cannot compile with
<anon>:2:23: 2:25 error: unexpected token: `an interpolated tt` <anon>:2 ($($a:tt)+) => ($($a)+); ^~ playpen: application terminated with error code 101
source share