summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-41213.rs
blob: 5c91bf71102d9595b86dd8eb3f18085635003e6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// run-pass
#![allow(dead_code)]
enum A {
    A1,
    A2,
    A3,
}

enum B {
    B1(String, String),
    B2(String, String),
}

fn main() {
    let a = A::A1;
    loop {
        let _ctor = match a {
            A::A3 => break,
            A::A1 => B::B1,
            A::A2 => B::B2,
        };
        break;
    }
}