rust/src/test/ui/pattern/usefulness/match-byte-array-patterns.stderr

57 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error: unreachable pattern
2018-12-25 15:56:47 +00:00
--> $DIR/match-byte-array-patterns.rs:9:9
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | &[0x41, 0x41, 0x41, 0x41] => {}
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
2018-12-25 15:56:47 +00:00
--> $DIR/match-byte-array-patterns.rs:2:9
2018-08-08 12:28:26 +00:00
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
2018-12-25 15:56:47 +00:00
--> $DIR/match-byte-array-patterns.rs:15:9
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | b"AAAA" => {},
2018-08-08 12:28:26 +00:00
| ^^^^^^^
error: unreachable pattern
2018-12-25 15:56:47 +00:00
--> $DIR/match-byte-array-patterns.rs:21:9
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | b"AAAA" => {},
2018-08-08 12:28:26 +00:00
| ^^^^^^^
error: unreachable pattern
2018-12-25 15:56:47 +00:00
--> $DIR/match-byte-array-patterns.rs:27:9
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | b"AAAA" => {},
2018-08-08 12:28:26 +00:00
| ^^^^^^^
error: unreachable pattern
2018-12-25 15:56:47 +00:00
--> $DIR/match-byte-array-patterns.rs:35:9
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | &[0x41, 0x41, 0x41, 0x41] => {}
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
2018-12-25 15:56:47 +00:00
--> $DIR/match-byte-array-patterns.rs:41:9
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | b"AAAA" => {},
2018-08-08 12:28:26 +00:00
| ^^^^^^^
error: unreachable pattern
2018-12-25 15:56:47 +00:00
--> $DIR/match-byte-array-patterns.rs:47:9
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | b"AAAA" => {},
2018-08-08 12:28:26 +00:00
| ^^^^^^^
error: unreachable pattern
2018-12-25 15:56:47 +00:00
--> $DIR/match-byte-array-patterns.rs:53:9
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | b"AAAA" => {},
2018-08-08 12:28:26 +00:00
| ^^^^^^^
error: aborting due to 8 previous errors