【发布时间】:2015-05-30 12:26:58
【问题描述】:
为什么this:
macro_rules! a_macro {
($($a:tt)+) => ($($a)+);
}
fn main() {
let x:u32 = 1;
let y:u32 = a_macro!(-x);
}
编译失败
<anon>:2:23: 2:25 error: unexpected token: `an interpolated tt`
<anon>:2 ($($a:tt)+) => ($($a)+);
^~
playpen: application terminated with error code 101
【问题讨论】:
标签: rust