rust/src/test/ui/async-await/issue-66387-if-without-else.rs

9 lines
135 B
Rust
Raw Normal View History

// edition:2018
async fn f() -> i32 {
if true { //~ ERROR if may be missing an else clause
return 0;
}
}
fn main() {}