mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
13 lines
195 B
Rust
13 lines
195 B
Rust
// edition:2021
|
|
|
|
#![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
|
|
}
|