blob: 3bf0984b25685acfa427b4bd25a01c7e6f4fe21d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
error: unreachable pattern
--> $DIR/issue-12116.rs:25:9
|
LL | &IntList::Cons(val, box IntList::Nil) => IntList::Cons(val, box IntList::Nil),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/issue-12116.rs:15:9
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
|