about summary refs log tree commit diff
path: root/tests/ui/async-await/async-error-span.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-01-26 03:51:26 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-01-27 20:10:17 +0000
commit0e52a671d41a787fe236cfa158d004ee28836b11 (patch)
treef70cd2a6db757cd8459734b765b45977bfdd5b66 /tests/ui/async-await/async-error-span.rs
parent60e04d1e8c3afd392551db103651e0ac55b4bd7e (diff)
downloadrust-0e52a671d41a787fe236cfa158d004ee28836b11.tar.gz
rust-0e52a671d41a787fe236cfa158d004ee28836b11.zip
Bless tests.
Diffstat (limited to 'tests/ui/async-await/async-error-span.rs')
-rw-r--r--tests/ui/async-await/async-error-span.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/async-await/async-error-span.rs b/tests/ui/async-await/async-error-span.rs
index 29b58ebc3a4..c9ecf359e3d 100644
--- a/tests/ui/async-await/async-error-span.rs
+++ b/tests/ui/async-await/async-error-span.rs
@@ -13,7 +13,9 @@ fn get_future() -> impl Future<Output = ()> {
 }
 
 async fn foo() {
-    let a; //~ ERROR type inside `async fn` body must be known in this context
+    let a;
+    //[no_drop_tracking,drop_tracking]~^ ERROR type inside `async fn` body must be known in this context
+    //[drop_tracking_mir]~^^ ERROR type annotations needed
     get_future().await;
 }