1 #![deny(unused_attributes)]
2 // Unused attributes on macro_rules requires special handling since the
3 // macro_rules definition does not survive towards HIR.
5 // A sample of various built-in attributes.
7 #[macro_use] //~ ERROR unused attribute
8 #[path="foo"] //~ ERROR unused attribute
9 #[recursion_limit="1"] //~ ERROR unused attribute
10 //~| ERROR crate-level attribute should be an inner attribute
15 // The following should not warn about unused attributes.