]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-45157.stderr
Auto merge of #53295 - estebank:on-unimplemented, r=michaelwoerister
[rust.git] / src / test / ui / issues / issue-45157.stderr
1 error[E0502]: cannot borrow `u.z.c` as immutable because it is also borrowed as mutable
2   --> $DIR/issue-45157.rs:37:20
3    |
4 LL |         let mref = &mut u.s.a;
5    |                    ---------- mutable borrow occurs here
6 ...
7 LL |         let nref = &u.z.c;
8    |                    ^^^^^^ immutable borrow occurs here
9 LL |         //~^ ERROR cannot borrow `u.z.c` as immutable because it is also borrowed as mutable [E0502]
10 LL |         println!("{} {}", mref, nref)
11    |                           ---- borrow later used here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0502`.