]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-30302.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-30302.stderr
1 warning[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `Stack`
2   --> $DIR/issue-30302.rs:13:9
3    |
4 LL |         Nil => true,
5    |         ^^^ help: to match on the variant, qualify the path: `Stack::Nil`
6
7 error: unreachable pattern
8   --> $DIR/issue-30302.rs:15:9
9    |
10 LL |         Nil => true,
11    |         --- matches any value
12 LL | //~^ WARN pattern binding `Nil` is named the same as one of the variants of the type `Stack`
13 LL |         _ => false
14    |         ^ unreachable pattern
15    |
16 note: lint level defined here
17   --> $DIR/issue-30302.rs:4:9
18    |
19 LL | #![deny(unreachable_patterns)]
20    |         ^^^^^^^^^^^^^^^^^^^^
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0170`.