]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-13033.rs
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / 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 fn pointer `fn(&mut Baz, &mut dyn Foo)`
11     //~| found fn pointer `fn(&mut Baz, &dyn Foo)`
12 }
13
14 fn main() {}