]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-39698.rs
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / issue-39698.rs
1 enum T {
2     T1(i32, i32),
3     T2(i32, i32),
4     T3(i32),
5     T4(i32),
6 }
7
8 fn main() {
9     match T::T1(123, 456) {
10         T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
11         //~^ ERROR is not bound in all patterns
12         //~| ERROR is not bound in all patterns
13         //~| ERROR is not bound in all patterns
14         //~| ERROR is not bound in all patterns
15     }
16 }