]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-91206.stderr
535d247452a59a21d47474e0cffa653735fdf02d
[rust.git] / src / test / ui / borrowck / issue-91206.stderr
1 error[E0596]: cannot borrow `*inner` as mutable, as it is behind a `&` reference
2   --> $DIR/issue-91206.rs:13:5
3    |
4 LL |     let inner = client.get_inner_ref();
5    |         ----- help: consider changing this to be a mutable reference: `&mut Vec<usize>`
6 LL |
7 LL |     inner.clear();
8    |     ^^^^^^^^^^^^^ `inner` is a `&` reference, so the data it refers to cannot be borrowed as mutable
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0596`.