blob: d86def536df8d3d9b86ec5f8a137f6dad94f0400 [file] [log] [blame]
error: unreachable statement
--> $DIR/unreachable-code-ret.rs:5:5
|
LL | return;
| ------ any code following this expression is unreachable
LL | println!("Paul is dead");
| ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
|
note: the lint level is defined here
--> $DIR/unreachable-code-ret.rs:1:9
|
LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^
= note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 1 previous error