]> git.proxmox.com Git - rustc.git/blob - tests/ui/underscore-imports/unused-2018.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / underscore-imports / unused-2018.rs
1 // edition:2018
2
3 #![deny(unused_imports)]
4
5 mod multi_segment {
6 use core::any; //~ ERROR unused import: `core::any`
7 }
8
9 mod single_segment {
10 use core; //~ ERROR unused import: `core`
11 }
12
13 mod single_segment_underscore {
14 use core as _; // OK
15 }
16
17 fn main() {}