]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-19100.stderr
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / issues / issue-19100.stderr
1 warning[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    |
4 LL | Bar if true
5    | ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
6    |
7    = note: `#[warn(bindings_with_variant_name)]` on by default
8
9 warning[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo`
10   --> $DIR/issue-19100.rs:22:1
11    |
12 LL | Baz if false
13    | ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
14
15 warning: 2 warnings emitted
16
17 For more information about this error, try `rustc --explain E0170`.