fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
441 B12 linesraw
1warning[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo`
2  --> $DIR/issue-19100.rs:18:1
3   |
4LL | Bar if true
5   | ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
6
7warning[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo`
8  --> $DIR/issue-19100.rs:22:1
9   |
10LL | Baz if false
11   | ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
12