Sign in
fuchsia
/
third_party
/
rust
/
eda6dc928323fcd0ac1b51cea1aa79ab17e8519d
/
.
/
tests
/
ui
/
suggestions
/
call-on-unimplemented-with-autoderef.rs
blob: 9021dd752e7e9525c3e6bc8489827d601895acf0 [
file
] [
log
] [
blame
]
trait
Foo
{}
impl
Foo
for
i32
{}
fn
needs_foo
(
_
:
impl
Foo
)
{}
fn
test
(
x
:
&
Box
<
dyn
Fn
()
->
i32
>)
{
needs_foo
(
x
);
//~^ ERROR the trait bound
//~| HELP use parentheses to call this trait object
}
fn
main
()
{}