]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-73741-type-err-drop-tracking.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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() {}