aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3613.rs
blob: f2e10921f671e87ab032f3f41ca3e3f830ca19bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod m1 {
    pub enum Baz4 {
        foo1,
        foo2,
    }
}

fn bar(x: m1::foo) {
    // { dg-error "unknown reference for resolved name: .foo." "" { target *-*-* } .-1 }
    match x {
        m1::foo::foo1 => {}
        // { dg-error "failed to type resolve root segment" "" { target *-*-* } .-1 }
        m1::NodePosition::foo2 => {}
        // { dg-error "failed to type resolve root segment" "" { target *-*-* } .-1 }
    }
}

pub fn main() {}