1 error[E0408]: variable `d` is not bound in all patterns
2 --> $DIR/issue-39698.rs:10:37
4 LL | T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
5 | - - ^^^^^^^^ ^^^^^^^^ pattern doesn't bind `d`
7 | | | pattern doesn't bind `d`
8 | | variable not in all patterns
9 | variable not in all patterns
11 error[E0408]: variable `a` is not bound in all patterns
12 --> $DIR/issue-39698.rs:10:23
14 LL | T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
15 | - ^^^^^^^^^^^ ^^^^^^^^ - variable not in all patterns
17 | | | pattern doesn't bind `a`
18 | | pattern doesn't bind `a`
19 | variable not in all patterns
21 error[E0408]: variable `b` is not bound in all patterns
22 --> $DIR/issue-39698.rs:10:9
24 LL | T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
25 | ^^^^^^^^^^^ - ^^^^^^^^ ^^^^^^^^ pattern doesn't bind `b`
27 | | | pattern doesn't bind `b`
28 | | variable not in all patterns
29 | pattern doesn't bind `b`
31 error[E0408]: variable `c` is not bound in all patterns
32 --> $DIR/issue-39698.rs:10:9
34 LL | T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
35 | ^^^^^^^^^^^ ^^^^^^^^^^^ - ^^^^^^^^ pattern doesn't bind `c`
37 | | | variable not in all patterns
38 | | pattern doesn't bind `c`
39 | pattern doesn't bind `c`
41 error: aborting due to 4 previous errors
43 For more information about this error, try `rustc --explain E0408`.