summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issue-64130-2-send.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/issue-64130-2-send.rs')
-rw-r--r--tests/ui/async-await/issue-64130-2-send.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/ui/async-await/issue-64130-2-send.rs b/tests/ui/async-await/issue-64130-2-send.rs
index d6d855bac..0195afe6b 100644
--- a/tests/ui/async-await/issue-64130-2-send.rs
+++ b/tests/ui/async-await/issue-64130-2-send.rs
@@ -1,6 +1,3 @@
-// revisions: no_drop_tracking drop_tracking drop_tracking_mir
-// [drop_tracking] compile-flags: -Zdrop-tracking
-// [drop_tracking_mir] compile-flags: -Zdrop-tracking-mir
#![feature(negative_impls)]
// edition:2018
@@ -14,8 +11,9 @@ impl !Send for Foo {}
fn is_send<T: Send>(t: T) { }
async fn bar() {
- let x = Box::new(Foo);
+ let x = Foo;
baz().await;
+ drop(x);
}
async fn baz() { }