Skip to content

Commit 6dd003a

Browse files
committed
add regression test
1 parent 14d2cd0 commit 6dd003a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/compile-fail/useless_attribute.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@
77
//~| SUGGESTION #![allow(dead_code)]
88
extern crate clippy_lints;
99

10+
// don't lint on unused_import for `use` items
11+
#[allow(unused_imports)]
12+
use std::collections;
13+
1014
fn main() {}

0 commit comments

Comments
 (0)