fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
439 B17 linesraw
1error: unreachable expression
2  --> $DIR/expr_add.rs:17:13
3   |
4LL |     let x = Foo + return;
5   |             ^^^^^^------
6   |             |     |
7   |             |     any code following this expression is unreachable
8   |             unreachable expression
9   |
10note: the lint level is defined here
11  --> $DIR/expr_add.rs:3:9
12   |
13LL | #![deny(unreachable_code)]
14   |         ^^^^^^^^^^^^^^^^
15
16error: aborting due to previous error
17