summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unresolved/unresolved-import-recovery.rs
blob: 0b0653378cbbdc6dee80149a311513ba5268bb20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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
    }
}