Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
suggestions
/
impl-trait-with-missing-trait-bounds-in-arg.rs
blob: ab25b362fedbba5b65589403e8d90d315ad9be11 [
file
] [
log
] [
blame
]
//@ run-rustfix
trait
Foo
{}
trait
Bar
{
fn
hello
(&
self
)
{}
}
struct
S
;
impl
Foo
for
S
{}
impl
Bar
for
S
{}
fn
test
(
foo
:
impl
Foo
)
{
foo
.
hello
();
//~ ERROR E0599
}
fn
main
()
{
test
(
S
);
}