]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issue-73741-type-err.rs
Rollup merge of #106625 - Swatinem:ref/cov6, r=nagisa
[rust.git] / tests / ui / async-await / issue-73741-type-err.rs
1 // edition:2018
2 //
3 // Regression test for issue #73741
4 // Ensures that we don't emit spurious errors when
5 // a type error ocurrs in an `async fn`
6
7 async fn weird() {
8     1 = 2; //~ ERROR invalid left-hand side
9
10     let mut loop_count = 0;
11     async {}.await
12 }
13
14 fn main() {}