mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-10 07:33:53 +00:00
18 lines
265 B
Rust
18 lines
265 B
Rust
|
// 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() {}
|