summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/in-trait/async-example-desugared-extra.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/async-await/in-trait/async-example-desugared-extra.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/async-await/in-trait/async-example-desugared-extra.rs b/tests/ui/async-await/in-trait/async-example-desugared-extra.rs
index 3505690f1..ce93bd626 100644
--- a/tests/ui/async-await/in-trait/async-example-desugared-extra.rs
+++ b/tests/ui/async-await/in-trait/async-example-desugared-extra.rs
@@ -1,15 +1,14 @@
// check-pass
// edition: 2021
-#![feature(async_fn_in_trait)]
-#![feature(return_position_impl_trait_in_trait, lint_reasons)]
-#![allow(incomplete_features)]
+#![feature(lint_reasons)]
use std::future::Future;
use std::pin::Pin;
use std::task::Poll;
pub trait MyTrait {
+ #[allow(async_fn_in_trait)]
async fn foo(&self) -> i32;
}