|
1 | 1 | warning[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo`
|
2 |
| - --> $DIR/match-same-name-enum-variant.rs:14:9 |
| 2 | + --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:17:9 |
3 | 3 | |
|
4 |
| -LL | Bar => println!("A"), |
| 4 | +LL | Bar => {}, |
5 | 5 | | ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
|
6 | 6 |
|
7 | 7 | warning[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo`
|
8 |
| - --> $DIR/match-same-name-enum-variant.rs:16:9 |
| 8 | + --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:19:9 |
9 | 9 | |
|
10 |
| -LL | Baz => println!("B"), |
| 10 | +LL | Baz => {}, |
11 | 11 | | ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
|
12 | 12 |
|
13 | 13 | warning[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo`
|
14 |
| - --> $DIR/match-same-name-enum-variant.rs:23:9 |
| 14 | + --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:26:9 |
15 | 15 | |
|
16 |
| -LL | Bar => println!("A"), |
| 16 | +LL | Bar => {}, |
17 | 17 | | ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
|
18 | 18 |
|
19 | 19 | warning[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo`
|
20 |
| - --> $DIR/match-same-name-enum-variant.rs:25:9 |
| 20 | + --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:28:9 |
21 | 21 | |
|
22 |
| -LL | Baz => println!("B"), |
| 22 | +LL | Baz => {}, |
| 23 | + | ^^^ help: to match on the variant, qualify the path: `Foo::Baz` |
| 24 | + |
| 25 | +warning[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo` |
| 26 | + --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:35:9 |
| 27 | + | |
| 28 | +LL | Bar => {}, |
| 29 | + | ^^^ help: to match on the variant, qualify the path: `Foo::Bar` |
| 30 | + |
| 31 | +warning[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo` |
| 32 | + --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:37:9 |
| 33 | + | |
| 34 | +LL | Baz => {}, |
23 | 35 | | ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
|
24 | 36 |
|
0 commit comments