]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-61623.stderr
Merge commit '7b73b60faca71d01d900e49831fcb84553e93019' into sync-rustfmt
[rust.git] / src / test / ui / issues / issue-61623.stderr
1 error[E0596]: cannot borrow `*x.1` as mutable, as it is behind a `&` reference
2   --> $DIR/issue-61623.rs:6:19
3    |
4 LL | fn f3<'a>(x: &'a ((), &'a mut ())) {
5    |              -------------------- help: consider changing this to be a mutable reference: `&'a mut ((), &'a mut ())`
6 LL |     f2(|| x.0, f1(x.1))
7    |                   ^^^ `x` is a `&` reference, so the data it refers to cannot be borrowed as mutable
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0596`.