about summary refs log tree commit diff
path: root/tests/ui/async-await/in-trait/async-example-desugared.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/in-trait/async-example-desugared.rs')
-rw-r--r--tests/ui/async-await/in-trait/async-example-desugared.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/async-await/in-trait/async-example-desugared.rs b/tests/ui/async-await/in-trait/async-example-desugared.rs
index 0a5023176fe..7987645c97b 100644
--- a/tests/ui/async-await/in-trait/async-example-desugared.rs
+++ b/tests/ui/async-await/in-trait/async-example-desugared.rs
@@ -8,6 +8,7 @@
 use std::future::Future;
 
 trait MyTrait {
+    #[allow(async_fn_in_trait)]
     async fn foo(&self) -> i32;
 }