summaryrefslogtreecommitdiffstats
path: root/src/test/ui/mismatched_types/E0053.rs
blob: d3146ce54905730f2a0a5aaf725d177f2f89ba6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
trait Foo {
    fn foo(x: u16);
    fn bar(&self);
}

struct Bar;

impl Foo for Bar {
    fn foo(x: i16) { }
    //~^ ERROR method `foo` has an incompatible type for trait
    fn bar(&mut self) { }
    //~^ ERROR method `bar` has an incompatible type for trait
}

fn main() {
}