blob: a6c9e9712c05080222956e090190387abd657458 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
trait Foo {
fn bar(&mut self, other: &mut Foo);
}
struct Baz;
impl Foo for Baz {
fn bar(&mut self, other: &Foo) {}
//~^ ERROR method `bar` has an incompatible type for trait
//~| expected type `fn(&mut Baz, &mut dyn Foo)`
//~| found type `fn(&mut Baz, &dyn Foo)`
}
fn main() {}
|