macros: tt fragments treat $(foo)* like foo · Issue #39390 · rust-lang/rust (original) (raw)

For example, the following compiles and prints success:

macro_rules! identity { ($t:tt) => { $t } }

identity! { (fn(fn (fn(main)* () { (((( println!($("success")+); )+)+ })* }