@@ -147,7 +147,7 @@ LL | async fn ft1();
147
147
= note: `async` trait functions are not currently supported
148
148
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
149
149
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
150
- = help: add `#![feature(return_position_impl_trait_in_trait )]` to the crate attributes to enable
150
+ = help: add `#![feature(async_fn_in_trait )]` to the crate attributes to enable
151
151
152
152
error[E0706]: functions in traits cannot be declared `async`
153
153
--> $DIR/fn-header-semantic-fail.rs:21:9
@@ -160,7 +160,7 @@ LL | const async unsafe extern "C" fn ft5();
160
160
= note: `async` trait functions are not currently supported
161
161
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
162
162
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
163
- = help: add `#![feature(return_position_impl_trait_in_trait )]` to the crate attributes to enable
163
+ = help: add `#![feature(async_fn_in_trait )]` to the crate attributes to enable
164
164
165
165
error[E0706]: functions in traits cannot be declared `async`
166
166
--> $DIR/fn-header-semantic-fail.rs:29:9
@@ -173,7 +173,7 @@ LL | async fn ft1() {}
173
173
= note: `async` trait functions are not currently supported
174
174
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
175
175
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
176
- = help: add `#![feature(return_position_impl_trait_in_trait )]` to the crate attributes to enable
176
+ = help: add `#![feature(async_fn_in_trait )]` to the crate attributes to enable
177
177
178
178
error[E0706]: functions in traits cannot be declared `async`
179
179
--> $DIR/fn-header-semantic-fail.rs:33:9
@@ -186,7 +186,7 @@ LL | const async unsafe extern "C" fn ft5() {}
186
186
= note: `async` trait functions are not currently supported
187
187
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
188
188
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
189
- = help: add `#![feature(return_position_impl_trait_in_trait )]` to the crate attributes to enable
189
+ = help: add `#![feature(async_fn_in_trait )]` to the crate attributes to enable
190
190
191
191
error[E0391]: cycle detected when computing type of `main::ff5::{opaque#0}`
192
192
--> $DIR/fn-header-semantic-fail.rs:12:44
0 commit comments