fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.7 KiB41 linesraw
1warning[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
3   |
4LL |         Bar => {},
5   |         ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
6   |
7   = note: `#[warn(bindings_with_variant_name)]` on by default
8
9warning[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
11   |
12LL |         Baz => {},
13   |         ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
14
15warning[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
17   |
18LL |         Bar => {},
19   |         ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
20
21warning[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
23   |
24LL |         Baz => {},
25   |         ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
26
27warning[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
29   |
30LL |         Bar => {},
31   |         ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
32
33warning[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
35   |
36LL |         Baz => {},
37   |         ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
38
39warning: 6 warnings emitted
40
41For more information about this error, try `rustc --explain E0170`.