summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-13033.rs
blob: 7631831a81a5b2787be1811730173a858a65e188 (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 fn pointer `fn(&mut Baz, &mut dyn Foo)`
    //~| found fn pointer `fn(&mut Baz, &dyn Foo)`
}

fn main() {}