]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/span/borrowck-object-mutability.stderr
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / span / borrowck-object-mutability.stderr
index fe6d05c588f7ffbeeee60c823eb1126a88d3d7c3..cc43f6d0928dadb51e94e829793f837680a01b82 100644 (file)
@@ -5,7 +5,7 @@ LL | fn borrowed_receiver(x: &dyn Foo) {
    |                         -------- help: consider changing this to be a mutable reference: `&mut dyn Foo`
 LL |     x.borrowed();
 LL |     x.borrowed_mut();
-   |     ^ `x` is a `&` reference, so the data it refers to cannot be borrowed as mutable
+   |     ^^^^^^^^^^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be borrowed as mutable
 
 error[E0596]: cannot borrow `*x` as mutable, as `x` is not declared as mutable
   --> $DIR/borrowck-object-mutability.rs:18:5
@@ -14,7 +14,7 @@ LL | fn owned_receiver(x: Box<dyn Foo>) {
    |                   - help: consider changing this to be mutable: `mut x`
 LL |     x.borrowed();
 LL |     x.borrowed_mut();
-   |     ^ cannot borrow as mutable
+   |     ^^^^^^^^^^^^^^^^ cannot borrow as mutable
 
 error: aborting due to 2 previous errors