]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/span/borrowck-fn-in-const-b.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / span / borrowck-fn-in-const-b.stderr
index 1df19deb12f6b59955b0d862f5a258a3960b64c5..d4a8ba2698da0998f7ef0a30a5e8637d8eae14b1 100644 (file)
@@ -2,13 +2,13 @@ error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
   --> $DIR/borrowck-fn-in-const-b.rs:7:9
    |
 LL |         x.push(format!("this is broken"));
-   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `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
    |
 help: consider changing this to be a mutable reference
    |
 LL |     fn broken(x: &mut Vec<String>) {
-   |                  ~~~~~~~~~~~~~~~~
+   |                   +++
 
-error: aborting due to previous error
+error: aborting due to previous error
 
 For more information about this error, try `rustc --explain E0596`.