diff options
Diffstat (limited to 'tests/ui/async-await/in-trait/async-example-desugared-extra.rs')
| -rw-r--r-- | tests/ui/async-await/in-trait/async-example-desugared-extra.rs | 6 |
1 files changed, 3 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 1bbf4836a2a..3505690f1ec 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 @@ -2,14 +2,14 @@ // edition: 2021 #![feature(async_fn_in_trait)] -#![feature(return_position_impl_trait_in_trait)] +#![feature(return_position_impl_trait_in_trait, lint_reasons)] #![allow(incomplete_features)] use std::future::Future; use std::pin::Pin; use std::task::Poll; -trait MyTrait { +pub trait MyTrait { async fn foo(&self) -> i32; } @@ -27,7 +27,7 @@ impl Future for MyFuture { } impl MyTrait for i32 { - #[allow(refining_impl_trait)] + #[expect(refining_impl_trait)] fn foo(&self) -> impl Future<Output = i32> + Clone { MyFuture(*self) } |
