summaryrefslogtreecommitdiffstats
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.rs5
1 files changed, 1 insertions, 4 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 0a5023176..78904d87a 100644
--- a/tests/ui/async-await/in-trait/async-example-desugared.rs
+++ b/tests/ui/async-await/in-trait/async-example-desugared.rs
@@ -1,13 +1,10 @@
// check-pass
// edition: 2021
-#![feature(async_fn_in_trait)]
-#![feature(return_position_impl_trait_in_trait)]
-#![allow(incomplete_features)]
-
use std::future::Future;
trait MyTrait {
+ #[allow(async_fn_in_trait)]
async fn foo(&self) -> i32;
}