]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/resolve-bad-import-prefix.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / resolve / resolve-bad-import-prefix.rs
1 mod m {}
2 enum E {}
3 struct S;
4 trait Tr {}
5
6 use {}; // OK
7 use ::{}; // OK
8 use m::{}; // OK
9 use E::{}; // OK
10 use S::{}; // FIXME, this and `use S::{self};` should be an error
11 use Tr::{}; // FIXME, this and `use Tr::{self};` should be an error
12 use Nonexistent::{}; //~ ERROR unresolved import `Nonexistent`
13
14 fn main () {}