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 `#[macro_use]` only has an effect
8 #[path="foo"] //~ ERROR #[path]` only has an effect
9 #[recursion_limit="1"] //~ ERROR crate-level attribute should be an inner attribute
14 // The following should not warn about unused attributes.