diff --git a/tests/compile-fail/useless_attribute.rs b/tests/compile-fail/useless_attribute.rs index 645d7c154f1..1826f3a20e9 100644 --- a/tests/compile-fail/useless_attribute.rs +++ b/tests/compile-fail/useless_attribute.rs @@ -7,4 +7,8 @@ //~| SUGGESTION #![allow(dead_code)] extern crate clippy_lints; +// don't lint on unused_import for `use` items +#[allow(unused_imports)] +use std::collections; + fn main() {}