mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
18 lines
351 B
Rust
18 lines
351 B
Rust
|
// Check that unresolved imports do not create additional errors and ICEs
|
||
|
|
||
|
mod m {
|
||
|
pub use unresolved; //~ ERROR unresolved import `unresolved`
|
||
|
|
||
|
fn f() {
|
||
|
let unresolved = 0; // OK
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
match 0u8 {
|
||
|
m::unresolved => {} // OK
|
||
|
m::unresolved(..) => {} // OK
|
||
|
m::unresolved{..} => {} // OK
|
||
|
}
|
||
|
}
|