]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/mut/mut-cross-borrowing.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / mut / mut-cross-borrowing.stderr
index e2eea195dafb8f2b3f4e83a8589e35fc382e3561..c262d1336a2be631902f2e43b80a5462f9af6cfc 100644 (file)
@@ -4,11 +4,11 @@ error[E0308]: mismatched types
 LL |     f(x)
    |       ^
    |       |
-   |       expected &mut isize, found struct `std::boxed::Box`
+   |       expected `&mut isize`, found struct `std::boxed::Box`
    |       help: consider mutably borrowing here: `&mut x`
    |
-   = note: expected type `&mut isize`
-              found type `std::boxed::Box<{integer}>`
+   = note: expected mutable reference `&mut isize`
+                         found struct `std::boxed::Box<{integer}>`
 
 error: aborting due to previous error