]> git.lizzy.rs Git - rust.git/blob - tests/ui/useless_attribute.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / useless_attribute.rs
1 #![feature(tool_lints)]
2
3 #![warn(clippy::useless_attribute)]
4
5 #[allow(dead_code, unused_extern_crates)]
6 #[cfg_attr(feature = "cargo-clippy", allow(dead_code, unused_extern_crates))]
7 #[cfg_attr(feature = "cargo-clippy",
8            allow(dead_code, unused_extern_crates))]
9 #[allow(unused_imports)]
10 #[macro_use]
11 extern crate clippy_lints;
12
13 // don't lint on unused_import for `use` items
14 #[allow(unused_imports)]
15 use std::collections;
16
17 // don't lint on deprecated for `use` items
18 mod foo { #[deprecated] pub struct Bar; }
19 #[allow(deprecated)]
20 pub use foo::Bar;
21
22 fn main() {}