]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-91206.stderr
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / 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    |         ----- consider changing this binding's type to be: `&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`.