]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-13033.rs
Auto merge of #107044 - cuviper:more-llvm-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / issues / issue-13033.rs
1 trait Foo {
2     fn bar(&mut self, other: &mut dyn Foo);
3 }
4
5 struct Baz;
6
7 impl Foo for Baz {
8     fn bar(&mut self, other: &dyn Foo) {}
9     //~^ ERROR method `bar` has an incompatible type for trait
10     //~| expected signature `fn(&mut Baz, &mut dyn Foo)`
11     //~| found signature `fn(&mut Baz, &dyn Foo)`
12 }
13
14 fn main() {}