fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.3 KiB56 linesraw
1error: unreachable pattern
2  --> $DIR/match-byte-array-patterns.rs:9:9
3   |
4LL |         &[0x41, 0x41, 0x41, 0x41] => {}
5   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7note: lint level defined here
8  --> $DIR/match-byte-array-patterns.rs:2:9
9   |
10LL | #![deny(unreachable_patterns)]
11   |         ^^^^^^^^^^^^^^^^^^^^
12
13error: unreachable pattern
14  --> $DIR/match-byte-array-patterns.rs:15:9
15   |
16LL |         b"AAAA" => {},
17   |         ^^^^^^^
18
19error: unreachable pattern
20  --> $DIR/match-byte-array-patterns.rs:21:9
21   |
22LL |         b"AAAA" => {},
23   |         ^^^^^^^
24
25error: unreachable pattern
26  --> $DIR/match-byte-array-patterns.rs:27:9
27   |
28LL |         b"AAAA" => {},
29   |         ^^^^^^^
30
31error: unreachable pattern
32  --> $DIR/match-byte-array-patterns.rs:35:9
33   |
34LL |         &[0x41, 0x41, 0x41, 0x41] => {}
35   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
36
37error: unreachable pattern
38  --> $DIR/match-byte-array-patterns.rs:41:9
39   |
40LL |         b"AAAA" => {},
41   |         ^^^^^^^
42
43error: unreachable pattern
44  --> $DIR/match-byte-array-patterns.rs:47:9
45   |
46LL |         b"AAAA" => {},
47   |         ^^^^^^^
48
49error: unreachable pattern
50  --> $DIR/match-byte-array-patterns.rs:53:9
51   |
52LL |         b"AAAA" => {},
53   |         ^^^^^^^
54
55error: aborting due to 8 previous errors
56