2019-11-06 15:27:21 +00:00
|
|
|
error: unreachable pattern
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/slice-patterns-reachability.rs:8:9
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
|
|
|
LL | [true, ..] => {}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ---------- matches all the relevant values
|
2024-07-21 12:46:05 +00:00
|
|
|
LL | [true, ..] => {}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ^^^^^^^^^^ no value can reach this
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/slice-patterns-reachability.rs:1:9
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/slice-patterns-reachability.rs:9:9
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
2024-07-21 12:46:05 +00:00
|
|
|
LL | [true, ..] => {}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ---------- matches all the relevant values
|
2024-07-21 12:46:05 +00:00
|
|
|
LL | [true, ..] => {}
|
2019-11-06 15:27:21 +00:00
|
|
|
LL | [true] => {}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ^^^^^^ no value can reach this
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/slice-patterns-reachability.rs:14:9
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
|
|
|
LL | [.., true] => {}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ---------- matches all the relevant values
|
2024-07-21 12:46:05 +00:00
|
|
|
LL | [.., true] => {}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ^^^^^^^^^^ no value can reach this
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/slice-patterns-reachability.rs:15:9
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
2024-07-21 12:46:05 +00:00
|
|
|
LL | [.., true] => {}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ---------- matches all the relevant values
|
2024-07-21 12:46:05 +00:00
|
|
|
LL | [.., true] => {}
|
2019-11-06 15:27:21 +00:00
|
|
|
LL | [true] => {}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ^^^^^^ no value can reach this
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/slice-patterns-reachability.rs:20:9
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
|
|
|
LL | [false, .., true] => {}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ----------------- matches all the relevant values
|
2024-07-21 12:46:05 +00:00
|
|
|
LL | [false, .., true] => {}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^ no value can reach this
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/slice-patterns-reachability.rs:21:9
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
2024-07-21 12:46:05 +00:00
|
|
|
LL | [false, .., true] => {}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ----------------- matches all the relevant values
|
2024-07-21 12:46:05 +00:00
|
|
|
LL | [false, .., true] => {}
|
2019-11-06 15:27:21 +00:00
|
|
|
LL | [false, true] => {}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ^^^^^^^^^^^^^ no value can reach this
|
2019-11-06 15:27:21 +00:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|