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