]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/E0053.rs
Rollup merge of #106860 - anden3:doc-double-spaces, r=Dylan-DPC
[rust.git] / tests / 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 }