fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
417 B16 linesraw
1error: unreachable statement
2  --> $DIR/issue-2150.rs:8:5
3   |
4LL |     panic!();
5   |     --------- any code following this expression is unreachable
6LL |     for x in &v { i += 1; }
7   |     ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
8   |
9note: the lint level is defined here
10  --> $DIR/issue-2150.rs:1:9
11   |
12LL | #![deny(unreachable_code)]
13   |         ^^^^^^^^^^^^^^^^
14
15error: aborting due to previous error
16