2018-07-15 14:11:54 -07:00
|
|
|
error: unreachable pattern
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-12116.rs:15:9
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | &IntList::Cons(val, box ref next_list) => tail(next_list),
|
2024-08-19 20:51:21 +02:00
|
|
|
| -------------------------------------- matches all the relevant values
|
2021-08-25 02:39:40 +02:00
|
|
|
LL | &IntList::Cons(val, box IntList::Nil) => IntList::Cons(val, Box::new(IntList::Nil)),
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2021-08-25 02:39:40 +02:00
|
|
|
--> $DIR/issue-12116.rs:4:9
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-15 14:11:54 -07:00
|
|
|
|