2022-11-08 15:24:06 +00:00
|
|
|
error[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `Stack`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-30302.rs:13:9
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | Nil => true,
|
2018-06-23 23:46:41 +00:00
|
|
|
| ^^^ help: to match on the variant, qualify the path: `Stack::Nil`
|
2019-12-31 20:25:16 +00:00
|
|
|
|
|
2022-11-08 15:24:06 +00:00
|
|
|
= note: `#[deny(bindings_with_variant_name)]` on by default
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error: unreachable pattern
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-30302.rs:15:9
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | Nil => true,
|
2017-12-20 03:53:39 +00:00
|
|
|
| --- matches any value
|
2019-03-09 12:03:44 +00:00
|
|
|
LL |
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | _ => false
|
2017-12-20 03:53:39 +00:00
|
|
|
| ^ unreachable pattern
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-30302.rs:4:9
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #![deny(unreachable_patterns)]
|
2017-12-10 19:47:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-11-08 15:24:06 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0170`.
|