diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-06-24 10:02:54 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-09-23 13:47:30 +0000 |
| commit | 211d2ed07bb5dff7683fb021341db751cec2ca1e (patch) | |
| tree | c17d777a1beffa6edead6677afce1c5789bc8fa8 /tests/ui/async-await/issue-67252-unnamed-future.rs | |
| parent | 286502c9ed77e49aea5bb89cf18c5eda3a8fce92 (diff) | |
| download | rust-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.rs | 3 |
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; }); } |
