1error: useless lint attribute 2 --> $DIR/useless_attribute.rs:8:1 3 | 4LL | #[allow(dead_code)] 5 | ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]` 6 | 7 = note: `-D clippy::useless-attribute` implied by `-D warnings` 8 9error: useless lint attribute 10 --> $DIR/useless_attribute.rs:9:1 11 | 12LL | #[cfg_attr(feature = "cargo-clippy", allow(dead_code))] 13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![cfg_attr(feature = "cargo-clippy", allow(dead_code)` 14 15error: useless lint attribute 16 --> $DIR/useless_attribute.rs:61:5 17 | 18LL | #[allow(clippy::almost_swapped)] 19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(clippy::almost_swapped)]` 20 21error: aborting due to 3 previous errors 22 23