about summary refs log tree commit diff
path: root/tests/ui/async-await/issue-67252-unnamed-future.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-06-24 10:02:54 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-09-23 13:47:30 +0000
commit211d2ed07bb5dff7683fb021341db751cec2ca1e (patch)
treec17d777a1beffa6edead6677afce1c5789bc8fa8 /tests/ui/async-await/issue-67252-unnamed-future.rs
parent286502c9ed77e49aea5bb89cf18c5eda3a8fce92 (diff)
downloadrust-211d2ed07bb5dff7683fb021341db751cec2ca1e.tar.gz
rust-211d2ed07bb5dff7683fb021341db751cec2ca1e.zip
Bless tests.
Diffstat (limited to 'tests/ui/async-await/issue-67252-unnamed-future.rs')
-rw-r--r--tests/ui/async-await/issue-67252-unnamed-future.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/async-await/issue-67252-unnamed-future.rs b/tests/ui/async-await/issue-67252-unnamed-future.rs
index 1a7ff613341..60717d99346 100644
--- a/tests/ui/async-await/issue-67252-unnamed-future.rs
+++ b/tests/ui/async-await/issue-67252-unnamed-future.rs
@@ -16,8 +16,9 @@ impl Future for AFuture{
 
 async fn foo() {
     spawn(async { //~ ERROR future cannot be sent between threads safely
-        let _a = std::ptr::null_mut::<()>(); // `*mut ()` is not `Send`
+        let a = std::ptr::null_mut::<()>(); // `*mut ()` is not `Send`
         AFuture.await;
+        let _a = a;
     });
 }