]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-73741-type-err-drop-tracking.rs
Auto merge of #97033 - nbdd0121:unwind3, r=Amanieu
[rust.git] / src / test / 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() {}