Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
editions
/
dyn-trait-sugg-2021.rs
blob: a5364662600160a0c2cc18fac84722af9874065e [
file
] [
log
] [
blame
] [
edit
]
//@ edition:2021
trait
Foo
<
T
>
{}
impl
<
T
>
dyn
Foo
<
T
>
{
fn
hi
(
_x
:
T
)
{}
}
fn
main
()
{
Foo
::
hi
(
123
);
//~^ ERROR expected a type, found a trait
}