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