Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
impl-trait
/
impl-generic-mismatch-ab.rs
blob: 6c9b119de74114829470e5ea590521316f95c342 [
file
] [
log
] [
blame
]
use
std
::
fmt
::
Debug
;
trait
Foo
{
fn
foo
<
A
:
Debug
>(&
self
,
a
:
&
A
,
b
:
&
impl
Debug
);
}
impl
Foo
for
()
{
fn
foo
<
B
:
Debug
>(&
self
,
a
:
&
impl
Debug
,
b
:
&
B
)
{
}
//~^ ERROR method `foo` has an incompatible type for trait
}
fn
main
()
{}