]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/issue-14221.stderr
Rollup merge of #106749 - glandium:dwarf, r=Mark-Simulacrum
[rust.git] / tests / ui / pattern / issue-14221.stderr
1 error[E0170]: pattern binding `A` is named the same as one of the variants of the type `E`
2   --> $DIR/issue-14221.rs:13:13
3    |
4 LL |             A => "A",
5    |             ^ help: to match on the variant, qualify the path: `E::A`
6    |
7    = note: `#[deny(bindings_with_variant_name)]` on by default
8
9 error[E0170]: pattern binding `B` is named the same as one of the variants of the type `E`
10   --> $DIR/issue-14221.rs:15:13
11    |
12 LL |             B => "B",
13    |             ^ help: to match on the variant, qualify the path: `E::B`
14
15 error: unreachable pattern
16   --> $DIR/issue-14221.rs:15:13
17    |
18 LL |             A => "A",
19    |             - matches any value
20 LL |
21 LL |             B => "B",
22    |             ^ unreachable pattern
23    |
24 note: the lint level is defined here
25   --> $DIR/issue-14221.rs:1:9
26    |
27 LL | #![deny(unreachable_patterns)]
28    |         ^^^^^^^^^^^^^^^^^^^^
29
30 error: aborting due to 3 previous errors
31
32 For more information about this error, try `rustc --explain E0170`.