2018-12-13 05:54:49 -06:00
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/slice-pattern-const.rs:9:9
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | [84, 69, 83, 84] => (),
|
2018-12-13 05:54:49 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2018-12-13 05:54:49 -06:00
|
|
|
--> $DIR/slice-pattern-const.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/slice-pattern-const.rs:15:9
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | [84, 69, 83, 84] => (),
|
2018-12-13 05:54:49 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/slice-pattern-const.rs:21:9
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | MAGIC_TEST => (),
|
2018-12-13 05:54:49 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/slice-pattern-const.rs:28:9
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | FOO => (),
|
2018-12-13 05:54:49 -06:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/slice-pattern-const.rs:35:9
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | BAR => (),
|
2018-12-13 05:54:49 -06:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/slice-pattern-const.rs:43:9
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | BOO => (),
|
2018-12-13 05:54:49 -06:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/slice-pattern-const.rs:44:9
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | b"" => (),
|
2018-12-13 05:54:49 -06:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/slice-pattern-const.rs:45:9
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | _ => (),
|
2018-12-13 05:54:49 -06:00
|
|
|
| ^
|
|
|
|
|
2019-11-17 16:25:51 -06:00
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/slice-pattern-const.rs:51:9
|
|
|
|
|
|
|
|
|
LL | [true] => {}
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2018-12-13 05:54:49 -06:00
|
|
|
|