]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/E0053.rs
Merge commit 'bf1c6f9871f430e284b17aa44059e0d0395e28a6' into clippyup
[rust.git] / src / test / ui / mismatched_types / E0053.rs
1 trait Foo {
2     fn foo(x: u16);
3     fn bar(&self);
4 }
5
6 struct Bar;
7
8 impl Foo for Bar {
9     fn foo(x: i16) { }
10     //~^ ERROR method `foo` has an incompatible type for trait
11     fn bar(&mut self) { }
12     //~^ ERROR method `bar` has an incompatible type for trait
13 }
14
15 fn main() {
16 }