fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1.4 KiB37 linesraw
1error: unreachable statement
2  --> $DIR/expr_loop.rs:8:5
3   |
4LL |     loop { return; }
5   |            ------ any code following this expression is unreachable
6LL |     println!("I am dead.");
7   |     ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
8   |
9note: lint level defined here
10  --> $DIR/expr_loop.rs:4:9
11   |
12LL | #![deny(unreachable_code)]
13   |         ^^^^^^^^^^^^^^^^
14   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
15
16error: unreachable statement
17  --> $DIR/expr_loop.rs:21:5
18   |
19LL |     loop { return; }
20   |            ------ any code following this expression is unreachable
21LL |     println!("I am dead.");
22   |     ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
23   |
24   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
25
26error: unreachable statement
27  --> $DIR/expr_loop.rs:32:5
28   |
29LL |     loop { 'middle: loop { loop { break 'middle; } } }
30   |     -------------------------------------------------- any code following this expression is unreachable
31LL |     println!("I am dead.");
32   |     ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
33   |
34   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
35
36error: aborting due to 3 previous errors
37