about summary refs log tree commit diff
path: root/tests/ui/async-await/async-error-span.rs
diff options
context:
space:
mode:
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;
 }