rust/src/test/ui/issues/issue-12369.stderr

15 lines
347 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error: unreachable pattern
--> $DIR/issue-12369.rs:20:9
|
LL | &[10,a, ref rest..] => 10 //~ ERROR: unreachable pattern
| ^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/issue-12369.rs:12:9
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error