Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
async-await
/
in-trait
/
object-safety.rs
blob: 5e5375b082bbf22b297b68bf78b77df291c69827 [
file
] [
log
] [
blame
]
// 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
}