]> git.lizzy.rs Git - rust.git/blob - src/test/ui/reachable/expr_loop.stderr
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[rust.git] / src / test / ui / reachable / expr_loop.stderr
1 error: unreachable statement
2   --> $DIR/expr_loop.rs:8:5
3    |
4 LL |     loop { return; }
5    |            ------ any code following this expression is unreachable
6 LL |     println!("I am dead.");
7    |     ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
8    |
9 note: the lint level is defined here
10   --> $DIR/expr_loop.rs:4:9
11    |
12 LL | #![deny(unreachable_code)]
13    |         ^^^^^^^^^^^^^^^^
14    = note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
15
16 error: unreachable statement
17   --> $DIR/expr_loop.rs:21:5
18    |
19 LL |     loop { return; }
20    |            ------ any code following this expression is unreachable
21 LL |     println!("I am dead.");
22    |     ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
23    |
24    = note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
25
26 error: unreachable statement
27   --> $DIR/expr_loop.rs:32:5
28    |
29 LL |     loop { 'middle: loop { loop { break 'middle; } } }
30    |     -------------------------------------------------- any code following this expression is unreachable
31 LL |     println!("I am dead.");
32    |     ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
33    |
34    = note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
35
36 error: aborting due to 3 previous errors
37