]> git.lizzy.rs Git - rust.git/blob - tests/ui/reachable/unreachable-code-ret.stderr
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / ui / reachable / unreachable-code-ret.stderr
1 error: unreachable statement
2   --> $DIR/unreachable-code-ret.rs:7:5
3    |
4 LL |     return;
5    |     ------ any code following this expression is unreachable
6 LL |     println!("Paul is dead");
7    |     ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
8    |
9 note: the lint level is defined here
10   --> $DIR/unreachable-code-ret.rs:3: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: aborting due to previous error
17