]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/issue-91206.stderr
Do not use a suggestion to change a binding's name to a type
[rust.git] / src / test / ui / borrowck / issue-91206.stderr
index 535d247452a59a21d47474e0cffa653735fdf02d..12d8d27c5f0264906276f2753ff25ce4260e8d4e 100644 (file)
@@ -2,7 +2,7 @@ error[E0596]: cannot borrow `*inner` as mutable, as it is behind a `&` reference
   --> $DIR/issue-91206.rs:13:5
    |
 LL |     let inner = client.get_inner_ref();
-   |         ----- help: consider changing this to be a mutable reference: `&mut Vec<usize>`
+   |         ----- consider changing this binding's type to be: `&mut Vec<usize>`
 LL |
 LL |     inner.clear();
    |     ^^^^^^^^^^^^^ `inner` is a `&` reference, so the data it refers to cannot be borrowed as mutable