1 2 3 4 5 6 7 8 9 10 11 12
// Scoped attributes should not trigger an unused attributes lint. #![deny(unused_attributes)] fn main() { #[rustfmt::skip] foo (); } fn foo() { assert!(true); }