summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/in-trait/async-example.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/async-await/in-trait/async-example.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/async-await/in-trait/async-example.rs b/tests/ui/async-await/in-trait/async-example.rs
index abf94ef74..a32f979df 100644
--- a/tests/ui/async-await/in-trait/async-example.rs
+++ b/tests/ui/async-await/in-trait/async-example.rs
@@ -1,11 +1,11 @@
// check-pass
// edition: 2021
-#![feature(async_fn_in_trait)]
-#![allow(incomplete_features)]
-
trait MyTrait {
+ #[allow(async_fn_in_trait)]
async fn foo(&self) -> i32;
+
+ #[allow(async_fn_in_trait)]
async fn bar(&self) -> i32;
}