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

57 lines
1.5 KiB
Plaintext
Raw Normal View History

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