fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
742 B26 linesraw
1error: unreachable expression
2  --> $DIR/expr_block.rs:10:9
3   |
4LL |         return;
5   |         ------ any code following this expression is unreachable
6LL |         22
7   |         ^^ unreachable expression
8   |
9note: the lint level is defined here
10  --> $DIR/expr_block.rs:4:9
11   |
12LL | #![deny(unreachable_code)]
13   |         ^^^^^^^^^^^^^^^^
14
15error: unreachable statement
16  --> $DIR/expr_block.rs:25:9
17   |
18LL |         return;
19   |         ------ any code following this expression is unreachable
20LL |         println!("foo");
21   |         ^^^^^^^^^^^^^^^^ unreachable statement
22   |
23   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
24
25error: aborting due to 2 previous errors
26