]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/E0053.rs
Rollup merge of #93569 - notriddle:notriddle/rustdoc-html-tags-generics, r=CraftSpider
[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 }