Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
traits
/
fn-pointer
/
suggest-wrap-parens-method.rs
blob: 89c1295613cc0e9dadb5376ac7873ae50bd12f13 [
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
.
do_stuff
();
//~^ ERROR the trait bound
}