1 #![deny(unused_imports)]
2 #![allow(non_upper_case_globals)]
4 // The aim of this test is to ensure that deny/allow/warn directives
5 // are applied to individual "use" statements instead of silently
9 mod a { pub static x: isize = 3; pub static y: isize = 4; }
12 use a::x; //~ ERROR: unused import
13 #[allow(unused_imports)]
14 use a::y; // no error here
17 #[allow(unused_imports)]
20 #[deny(unused_imports)]
21 use a::y; //~ ERROR: unused import