2019-09-30 15:27:18 -05:00
|
|
|
error: unreachable statement
|
|
|
|
--> $DIR/unreachable-lint-1.rs:5:13
|
|
|
|
|
|
|
|
|
LL | return; bar().await;
|
|
|
|
| ------ ^^^^^^^^^^^^ unreachable statement
|
|
|
|
| |
|
|
|
|
| any code following this expression is unreachable
|
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2019-09-30 15:27:18 -05:00
|
|
|
--> $DIR/unreachable-lint-1.rs:2:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_code)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|