mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-09 22:37:34 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
15 lines
402 B
Plaintext
15 lines
402 B
Plaintext
error: unreachable pattern
|
|
--> $DIR/issue-12116.rs:15:9
|
|
|
|
|
LL | &IntList::Cons(val, box IntList::Nil) => IntList::Cons(val, Box::new(IntList::Nil)),
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/issue-12116.rs:4:9
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|