mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
18 lines
524 B
Plaintext
18 lines
524 B
Plaintext
error: unreachable statement
|
|
--> $DIR/closure-bang.rs:6:5
|
|
|
|
|
LL | x();
|
|
| --- any code following this expression is unreachable
|
|
LL | println!("Foo bar");
|
|
| ^^^^^^^^^^^^^^^^^^^ unreachable statement
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/closure-bang.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
|
|
|