fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo` 2 --> $DIR/issue-19100.rs:17:1 3 | 4LL | Bar if true 5 | ^^^ help: to match on the variant, qualify the path: `Foo::Bar` 6 | 7 = note: `#[deny(bindings_with_variant_name)]` on by default 8 9error[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo` 10 --> $DIR/issue-19100.rs:21:1 11 | 12LL | Baz if false 13 | ^^^ help: to match on the variant, qualify the path: `Foo::Baz` 14 15error: aborting due to 2 previous errors 16 17For more information about this error, try `rustc --explain E0170`.