rust/src/test/ui/issue-45157.stderr
Guillaume Gomez 2e104a77cf update tests
2018-03-14 00:53:24 +01:00

15 lines
635 B
Text

error[E0502]: cannot borrow `u.z.c` as immutable because it is also borrowed as mutable
--> $DIR/issue-45157.rs:37:20
|
LL | let mref = &mut u.s.a;
| ---------- mutable borrow occurs here
...
LL | let nref = &u.z.c;
| ^^^^^^ immutable borrow occurs here
LL | //~^ ERROR cannot borrow `u.z.c` as immutable because it is also borrowed as mutable [E0502]
LL | println!("{} {}", mref, nref)
| ---- borrow later used here
error: aborting due to previous error
For more information about this error, try `rustc --explain E0502`.