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