1 error: unreachable pattern
2 --> $DIR/issue-12369.rs:9:9
4 LL | &[10,a, ref rest @ ..] => 10
5 | ^^^^^^^^^^^^^^^^^^^^^^
7 note: the lint level is defined here
8 --> $DIR/issue-12369.rs:1:9
10 LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
13 error: aborting due to previous error