1 2 3 4 5 6 7 8 9 10 11
// edition:2021 trait Foo { async fn foo(&self); } fn main() { let x: &dyn Foo = todo!(); //~^ ERROR the trait `Foo` cannot be made into an object }