2018-12-13 12:54:49 +01:00
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/slice-pattern-const-2.rs:9:9
|
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | [4, 5, 6, 7] => (),
|
2018-12-13 12:54:49 +01:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/slice-pattern-const-2.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/slice-pattern-const-2.rs:15:9
|
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | [4, 5, 6, 7] => (),
|
2018-12-13 12:54:49 +01:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/slice-pattern-const-2.rs:28:9
|
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | FOO => (),
|
2018-12-13 12:54:49 +01:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|