]> git.lizzy.rs Git - rust.git/blob - tests/ui/useless_attribute.stderr
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / useless_attribute.stderr
1 error: useless lint attribute
2  --> $DIR/useless_attribute.rs:5:1
3   |
4 5 | #[allow(dead_code, unused_extern_crates)]
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code, unused_extern_crates)]`
6   |
7   = note: `-D clippy::useless-attribute` implied by `-D warnings`
8
9 error: useless lint attribute
10  --> $DIR/useless_attribute.rs:6:1
11   |
12 6 | #[cfg_attr(feature = "cargo-clippy", allow(dead_code, unused_extern_crates))]
13   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![cfg_attr(feature = "cargo-clippy", allow(dead_code, unused_extern_crates))`
14
15 error: aborting due to 2 previous errors
16