Sign in
android
/
toolchain
/
rustc
/
cd1aefd586783f162dd848e314bd6991a5ffe033
/
.
/
tests
/
ui
/
suggestions
/
impl-trait-with-missing-trait-bounds-in-arg.fixed
blob: 5109511f95a6b4600ae006ab017cfa6ac15f1da0 [
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
+
Bar
)
{
foo
.
hello
();
//~ ERROR E0599
}
fn main
()
{
test
(
S
);
}