Closed
Description
can reproduce with
async fn example(){
unimplemented!()
}
results in
warning: unreachable expression
--> src/main.rs:1:19
|
1 | async fn example(){
| ___________________^
2 | | unimplemented!()
3 | | }
| |_^
|
= note: `#[warn(unreachable_code)]` on by default
using nightly-2019-09-18
Seems related to #61798
Activity
tmandry commentedon Sep 21, 2019
This also happens with loops which return (first reported in #61798 (comment)).
Minimal example:
These might be separate issues, but they appeared around the same time so I'm going to assume they're related.
unreachable_code
inasync fn
. #64651workaround for rust-lang/rust#64636
Auto merge of #64669 - estebank:unreachable, r=Centril