os-rust/tests/ui/pattern/usefulness/slice-pattern-const.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

84 lines
2.2 KiB
Text
Raw Normal View History

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