Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
traits
/
fn-pointer
/
suggest-wrap-parens-method.fixed
blob: e54963d01e83f8041342a0ecdfd6b79487fca790 [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
trait
Foo
{}
impl
Foo
for
fn
()
{}
trait
Bar
{
fn do_stuff
(&
self
)
where
Self
:
Foo
{}
}
impl
<
T
>
Bar
for
T
{}
fn main
()
{
(
main
as
fn
()).
do_stuff
();
//~^ ERROR the trait bound
}