diff options
Diffstat (limited to 'tests/ui/async-await/issue-93648.rs')
-rw-r--r-- | tests/ui/async-await/issue-93648.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/async-await/issue-93648.rs b/tests/ui/async-await/issue-93648.rs new file mode 100644 index 000000000..4ce3ac1e8 --- /dev/null +++ b/tests/ui/async-await/issue-93648.rs @@ -0,0 +1,12 @@ +// edition:2021 +// build-pass +// compile-flags: -Zdrop-tracking + +fn main() { + let _ = async { + let mut s = (String::new(),); + s.0.push_str("abc"); + std::mem::drop(s); + async {}.await; + }; +} |