rust/tests/ui/unresolved/unresolved-import-recovery.rs
2023-01-11 09:32:08 +00:00

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
}
}