Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
async-await
/
in-trait
/
dyn-compatibility.rs
blob: c1b1ec797846b7c22d75918917d091ae758d9a6b [
file
] [
log
] [
blame
]
//@ edition:2021
trait
Foo
{
async
fn
foo
(&
self
);
}
fn
main
()
{
let
x
:
&
dyn
Foo
=
todo
!();
//~^ ERROR the trait `Foo` is not dyn compatible
}