1 2 3 4 5 6 7 8 9 10
// check-pass macro_rules! m { () => { #[cfg(any())] fn f() {} } } trait T {} impl T for () { m!(); } fn main() {}