2022-11-19 02:32:55 +00:00
|
|
|
// edition:2021
|
2023-03-07 13:44:14 -03:00
|
|
|
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
|
|
|
|
// revisions: current next
|
2022-11-19 02:32:55 +00:00
|
|
|
|
|
|
|
#![feature(async_fn_in_trait)]
|
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
async fn foo(&self);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x: &dyn Foo = todo!();
|
|
|
|
//~^ ERROR the trait `Foo` cannot be made into an object
|
|
|
|
}
|