mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
17 lines
412 B
Plaintext
17 lines
412 B
Plaintext
error: unreachable statement
|
|
--> $DIR/unreachable-lint-1.rs:5:13
|
|
|
|
|
LL | return; bar().await;
|
|
| ------ ^^^^^^^^^^^^ unreachable statement
|
|
| |
|
|
| any code following this expression is unreachable
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unreachable-lint-1.rs:2:9
|
|
|
|
|
LL | #![deny(unreachable_code)]
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|