]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issue-73741-type-err-drop-tracking.rs
Rollup merge of #107108 - sulami:issue-83968-doc-alias-typo-suggestions, r=compiler...
[rust.git] / tests / ui / async-await / issue-73741-type-err-drop-tracking.rs
1 // edition:2018
2 // compile-flags: -Zdrop-tracking
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() {}