mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
18 lines
554 B
Plaintext
18 lines
554 B
Plaintext
error: unreachable statement
|
|
--> $DIR/unreachable-code-ret.rs:7: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:3: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 previous error
|
|
|