1 error[E0408]: variable `a` is not bound in all patterns
2 --> $DIR/resolve-inconsistent-names.rs:13:12
5 | - ^ pattern doesn't bind `a`
7 | variable not in all patterns
9 error[E0408]: variable `b` is not bound in all patterns
10 --> $DIR/resolve-inconsistent-names.rs:13:8
13 | ^ - variable not in all patterns
15 | pattern doesn't bind `b`
17 error[E0408]: variable `A` is not bound in all patterns
18 --> $DIR/resolve-inconsistent-names.rs:19:18
20 LL | (A, B) | (ref B, c) | (c, A) => ()
21 | - ^^^^^^^^^^ - variable not in all patterns
23 | | pattern doesn't bind `A`
24 | variable not in all patterns
26 help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::A`
27 --> $DIR/resolve-inconsistent-names.rs:19:10
29 LL | (A, B) | (ref B, c) | (c, A) => ()
32 error[E0408]: variable `B` is not bound in all patterns
33 --> $DIR/resolve-inconsistent-names.rs:19:31
35 LL | (A, B) | (ref B, c) | (c, A) => ()
36 | - - ^^^^^^ pattern doesn't bind `B`
38 | | variable not in all patterns
39 | variable not in all patterns
41 error[E0408]: variable `c` is not bound in all patterns
42 --> $DIR/resolve-inconsistent-names.rs:19:9
44 LL | (A, B) | (ref B, c) | (c, A) => ()
45 | ^^^^^^ - - variable not in all patterns
47 | | variable not in all patterns
48 | pattern doesn't bind `c`
50 error[E0409]: variable `B` is bound inconsistently across alternatives separated by `|`
51 --> $DIR/resolve-inconsistent-names.rs:19:23
53 LL | (A, B) | (ref B, c) | (c, A) => ()
54 | - ^ bound in different ways
58 error[E0408]: variable `CONST1` is not bound in all patterns
59 --> $DIR/resolve-inconsistent-names.rs:30:23
61 LL | (CONST1, _) | (_, Const2) => ()
62 | ------ ^^^^^^^^^^^ pattern doesn't bind `CONST1`
64 | variable not in all patterns
66 help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::CONST1`
67 --> $DIR/resolve-inconsistent-names.rs:30:10
69 LL | (CONST1, _) | (_, Const2) => ()
72 error[E0408]: variable `Const2` is not bound in all patterns
73 --> $DIR/resolve-inconsistent-names.rs:30:9
75 LL | (CONST1, _) | (_, Const2) => ()
76 | ^^^^^^^^^^^ ------ variable not in all patterns
78 | pattern doesn't bind `Const2`
80 help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::Const2`
81 --> $DIR/resolve-inconsistent-names.rs:30:27
83 LL | (CONST1, _) | (_, Const2) => ()
86 error[E0308]: mismatched types
87 --> $DIR/resolve-inconsistent-names.rs:19:19
90 | - this expression has type `(E, E)`
91 LL | (A, B) | (ref B, c) | (c, A) => ()
92 | - ^^^^^ expected enum `E`, found `&E`
94 | first introduced with type `E` here
96 = note: in the same arm, a binding must have the same type in all alternatives
98 error: aborting due to 9 previous errors
100 Some errors have detailed explanations: E0308, E0408, E0409.
101 For more information about an error, try `rustc --explain E0308`.