summary refs log tree commit diff
path: root/src/test/ui/issue-30302.stderr
blob: fa3cb92b180e06e2be7903c3864e6c995309b1a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
warning[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `Stack`
  --> $DIR/issue-30302.rs:23:9
   |
LL |         Nil => true,
   |         ^^^ help: to match on the variant, qualify the path: `Stack::Nil`

error: unreachable pattern
  --> $DIR/issue-30302.rs:25:9
   |
LL |         Nil => true,
   |         --- matches any value
LL | //~^ WARN pattern binding `Nil` is named the same as one of the variants of the type `Stack`
LL |         _ => false
   |         ^ unreachable pattern
   |
note: lint level defined here
  --> $DIR/issue-30302.rs:14:9
   |
LL | #![deny(unreachable_patterns)]
   |         ^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0170`.