fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
615 B26 linesraw
1error: unreachable pattern
2  --> $DIR/match-vec-unreachable.rs:9:9
3   |
4LL |         [(1, 2), (2, 3), b] => (),
5   |         ^^^^^^^^^^^^^^^^^^^
6   |
7note: lint level defined here
8  --> $DIR/match-vec-unreachable.rs:2:9
9   |
10LL | #![deny(unreachable_patterns)]
11   |         ^^^^^^^^^^^^^^^^^^^^
12
13error: unreachable pattern
14  --> $DIR/match-vec-unreachable.rs:19:9
15   |
16LL |         [_, _, _, _, _] => { }
17   |         ^^^^^^^^^^^^^^^
18
19error: unreachable pattern
20  --> $DIR/match-vec-unreachable.rs:27:9
21   |
22LL |         ['a', 'b', 'c'] => {}
23   |         ^^^^^^^^^^^^^^^
24
25error: aborting due to 3 previous errors
26