]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-40288.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-40288.stderr
1 error[E0506]: cannot assign to `*refr` because it is borrowed
2   --> $DIR/issue-40288.rs:26:5
3    |
4 LL |     save_ref(&*refr, &mut out);
5    |               ----- borrow of `*refr` occurs here
6 ...
7 LL |     *refr = 3; //~ ERROR cannot assign to `*refr` because it is borrowed
8    |     ^^^^^^^^^ assignment to borrowed `*refr` occurs here
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0506`.