]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issue-66387-if-without-else.rs
Rollup merge of #106854 - steffahn:drop_linear_arc_rebased, r=Mark-Simulacrum
[rust.git] / tests / ui / async-await / issue-66387-if-without-else.rs
1 // edition:2018
2 async fn f() -> i32 {
3     if true { //~ ERROR `if` may be missing an `else` clause
4         return 0;
5     }
6     // An `if` block without `else` causes the type table not to have a type for this expr.
7     // Check that we do not unconditionally access the type table and we don't ICE.
8 }
9
10 fn main() {}