|
1 |
| -warning[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo` |
2 |
| - --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:17:9 |
| 1 | +error[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo` |
| 2 | + --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:15:9 |
3 | 3 | |
|
4 | 4 | LL | Bar => {},
|
5 | 5 | | ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
|
6 | 6 | |
|
7 |
| - = note: `#[warn(bindings_with_variant_name)]` on by default |
| 7 | + = note: `#[deny(bindings_with_variant_name)]` on by default |
8 | 8 |
|
9 |
| -warning[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo` |
10 |
| - --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:19:9 |
| 9 | +error[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo` |
| 10 | + --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:17:9 |
11 | 11 | |
|
12 | 12 | LL | Baz => {},
|
13 | 13 | | ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
|
14 | 14 |
|
15 |
| -warning[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo` |
16 |
| - --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:26:9 |
| 15 | +error[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo` |
| 16 | + --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:24:9 |
17 | 17 | |
|
18 | 18 | LL | Bar => {},
|
19 | 19 | | ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
|
20 | 20 |
|
21 |
| -warning[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo` |
22 |
| - --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:28:9 |
| 21 | +error[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo` |
| 22 | + --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:26:9 |
23 | 23 | |
|
24 | 24 | LL | Baz => {},
|
25 | 25 | | ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
|
26 | 26 |
|
27 |
| -warning[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo` |
28 |
| - --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:35:9 |
| 27 | +error[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo` |
| 28 | + --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:33:9 |
29 | 29 | |
|
30 | 30 | LL | Bar => {},
|
31 | 31 | | ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
|
32 | 32 |
|
33 |
| -warning[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo` |
34 |
| - --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:37:9 |
| 33 | +error[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo` |
| 34 | + --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:35:9 |
35 | 35 | |
|
36 | 36 | LL | Baz => {},
|
37 | 37 | | ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
|
38 | 38 |
|
39 |
| -warning: 6 warnings emitted |
| 39 | +error: aborting due to 6 previous errors |
40 | 40 |
|
41 | 41 | For more information about this error, try `rustc --explain E0170`.
|
0 commit comments