]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-34209.rs
Rollup merge of #106752 - sulami:master, r=estebank
[rust.git] / tests / ui / issues / issue-34209.rs
1 enum S {
2     A,
3 }
4
5 fn bug(l: S) {
6     match l {
7         S::B {} => {}, //~ ERROR no variant named `B` found for enum `S`
8     }
9 }
10
11 fn main () {}