blob: 8174a803e7951657154b284114284001c1da94fa [file] [log] [blame] [edit]
//@ 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
}