summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-34209.rs
blob: 632ddb91b36fda42dfb848f21a4daf6b3d97efa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
enum S {
    A,
}

fn bug(l: S) {
    match l {
        S::B {} => {}, //~ ERROR no variant named `B` found for enum `S`
    }
}

fn main () {}