about summary refs log tree commit diff
path: root/tests/ui/underscore-imports/unused-2018.rs
blob: c1295e18a1266842d84d2001f90d80dccfa6ed2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ edition:2018

#![deny(unused_imports)]

mod multi_segment {
    use core::any; //~ ERROR unused import: `core::any`
}

mod single_segment {
    use core; //~ ERROR unused import: `core`
}

mod single_segment_underscore {
    use core as _; // OK
}

fn main() {}