]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-13033.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-13033.stderr
index a8473c8a5241327d8e05636cec816261c4ce6e6e..57447fa48aacc596a83a01dcd316f124cd031d88 100644 (file)
@@ -5,14 +5,13 @@ LL |     fn bar(&mut self, other: &mut dyn Foo);
    |                              ------------ type in trait
 ...
 LL |     fn bar(&mut self, other: &dyn Foo) {}
-   |                              ^^^^^^^^ types differ in mutability
+   |                              ^^^^^^^^
+   |                              |
+   |                              types differ in mutability
+   |                              help: consider changing the mutability to match the trait: `&mut dyn Foo`
    |
    = note: expected fn pointer `fn(&mut Baz, &mut dyn Foo)`
               found fn pointer `fn(&mut Baz, &dyn Foo)`
-help: consider change the type to match the mutability in trait
-   |
-LL |     fn bar(&mut self, other: &mut dyn Foo) {}
-   |                              ^^^^^^^^^^^^
 
 error: aborting due to previous error