rust/src/test/ui/issues/issue-30302.stderr

25 lines
770 B
Plaintext
Raw Normal View History

warning[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `Stack`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-30302.rs:13:9
|
2018-02-22 18:42:32 -06:00
LL | Nil => true,
| ^^^ help: to match on the variant, qualify the path: `Stack::Nil`
error: unreachable pattern
2018-12-25 09:56:47 -06:00
--> $DIR/issue-30302.rs:15:9
|
2018-02-22 18:42:32 -06:00
LL | Nil => true,
2017-12-19 21:53:39 -06:00
| --- matches any value
2018-02-24 17:01:39 -06:00
LL | //~^ WARN pattern binding `Nil` is named the same as one of the variants of the type `Stack`
2018-02-22 18:42:32 -06:00
LL | _ => false
2017-12-19 21:53:39 -06:00
| ^ unreachable pattern
|
note: lint level defined here
2018-12-25 09:56:47 -06:00
--> $DIR/issue-30302.rs:4:9
|
2018-02-22 18:42:32 -06:00
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0170`.