summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/issue-91206.stderr
blob: 30f83656518dc6e96e312c04ecb7a66cafd847b8 (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`.