fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1011 B44 linesraw
1error: unreachable pattern
2  --> $DIR/slice-patterns-reachability.rs:8:9
3   |
4LL |         [true, ..] => {}
5   |         ^^^^^^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/slice-patterns-reachability.rs:1:9
9   |
10LL | #![deny(unreachable_patterns)]
11   |         ^^^^^^^^^^^^^^^^^^^^
12
13error: unreachable pattern
14  --> $DIR/slice-patterns-reachability.rs:9:9
15   |
16LL |         [true] => {}
17   |         ^^^^^^
18
19error: unreachable pattern
20  --> $DIR/slice-patterns-reachability.rs:14:9
21   |
22LL |         [.., true] => {}
23   |         ^^^^^^^^^^
24
25error: unreachable pattern
26  --> $DIR/slice-patterns-reachability.rs:15:9
27   |
28LL |         [true] => {}
29   |         ^^^^^^
30
31error: unreachable pattern
32  --> $DIR/slice-patterns-reachability.rs:20:9
33   |
34LL |         [false, .., true] => {}
35   |         ^^^^^^^^^^^^^^^^^
36
37error: unreachable pattern
38  --> $DIR/slice-patterns-reachability.rs:21:9
39   |
40LL |         [false, true] => {}
41   |         ^^^^^^^^^^^^^
42
43error: aborting due to 6 previous errors
44