blob: 6653d497873e79d058a20ac347d94d93d7520ea5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
error[E0596]: cannot borrow `*inner` as mutable, as it is behind a `&` reference
--> $DIR/issue-91206.rs:13:5
|
LL | inner.clear();
| ^^^^^^^^^^^^^ `inner` is a `&` reference, so the data it refers to cannot be borrowed as mutable
|
help: consider specifying this binding's type
|
LL | let inner: &mut Vec<usize> = client.get_inner_ref();
| +++++++++++++++++
error: aborting due to previous error
For more information about this error, try `rustc --explain E0596`.
|