1 macro_rules! foo { 2 () => { 3 #[cfg_attr(all(), unknown)] 4 //~^ ERROR cannot find attribute `unknown` in this scope 5 fn foo() {} 6 } 7 } 8 9 foo!(); 10 main()11 fn main() {} 12