Sign in
fuchsia
/
third_party
/
rust
/
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
/
.
/
tests
/
ui
/
editions
/
dyn-trait-sugg-2021.rs
blob: a5364662600160a0c2cc18fac84722af9874065e [
file
] [
log
] [
blame
]
//@ 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
}