2018-07-15 14:11:54 -07:00
|
|
|
error: unreachable pattern
|
2019-12-30 01:23:42 +01:00
|
|
|
--> $DIR/issue-12369.rs:9:9
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2024-07-24 08:40:04 +02:00
|
|
|
LL | &[10,a, ref rest @ ..] => 10
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ no value can reach this
|
2024-07-24 08:40:04 +02:00
|
|
|
|
|
2024-08-19 20:51:21 +02:00
|
|
|
note: multiple earlier patterns match some of the same values
|
2024-07-24 08:40:04 +02:00
|
|
|
--> $DIR/issue-12369.rs:9:9
|
|
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | &[a,b,c] => 3,
|
|
|
|
|
| -------- matches some of the same values
|
|
|
|
|
LL | &[a, ref rest @ ..] => a,
|
|
|
|
|
| ------------------- matches some of the same values
|
2019-07-08 01:58:28 +02:00
|
|
|
LL | &[10,a, ref rest @ ..] => 10
|
2024-07-24 08:40:04 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-12-30 01:23:42 +01:00
|
|
|
--> $DIR/issue-12369.rs:1:9
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-15 14:11:54 -07:00
|
|
|
|