Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
traits
/
issue-65284-suggest-generic-trait-bound.rs
blob: 018ce0459fd6f21794251af2a8bf3aab56bf31f4 [
file
] [
log
] [
blame
] [
edit
]
trait
Foo
{
fn
foo
(&
self
);
}
trait
Bar
{}
fn
do_stuff
<
T
:
Bar
>(
t
:
T
)
{
t
.
foo
()
//~ ERROR no method named `foo` found
}
fn
main
()
{}