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
5 | ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
7 = note: `#[warn(bindings_with_variant_name)]` on by default
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
13 | ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
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
19 | ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
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
25 | ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
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
31 | ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
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
37 | ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
39 warning: 6 warnings emitted
41 For more information about this error, try `rustc --explain E0170`.