Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
7c547894c76efe9303caa3108754674c39bd901d
/
.
/
tests
/
ui
/
mismatched_types
/
trait-impl-fn-incompatibility.rs
blob: ba206b8608f6c51b0fabd3d480c19440104b45e3 [
file
] [
log
] [
blame
]
trait
Foo
{
fn
foo
(
x
:
u16
);
fn
bar
(&
mut
self
,
bar
:
&
mut
Bar
);
}
struct
Bar
;
impl
Foo
for
Bar
{
fn
foo
(
x
:
i16
)
{
}
//~ ERROR incompatible type
fn
bar
(&
mut
self
,
bar
:
&
Bar
)
{
}
//~ ERROR incompatible type
}
fn
main
()
{
}