summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-13033.rs
blob: fdb356e70c5f06d0a0994733830fddafc87872a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
trait Foo {
    fn bar(&mut self, other: &mut dyn Foo);
}

struct Baz;

impl Foo for Baz {
    fn bar(&mut self, other: &dyn Foo) {}
    //~^ ERROR method `bar` has an incompatible type for trait
    //~| expected signature `fn(&mut Baz, &mut dyn Foo)`
    //~| found signature `fn(&mut Baz, &dyn Foo)`
}

fn main() {}