1 error[E0503]: cannot use `x` because it was mutably borrowed
2 --> $DIR/borrowck-use-mut-borrow.rs:11:10
5 | ------ borrow of `x` occurs here
7 | ^ use of borrowed `x`
9 | ------ borrow later used here
11 error[E0503]: cannot use `x` because it was mutably borrowed
12 --> $DIR/borrowck-use-mut-borrow.rs:18:10
14 LL | let p = &mut x.a;
15 | -------- borrow of `x.a` occurs here
17 | ^ use of borrowed `x.a`
19 | ------ borrow later used here
21 error[E0503]: cannot use `x.a` because it was mutably borrowed
22 --> $DIR/borrowck-use-mut-borrow.rs:25:10
25 | ------ borrow of `x` occurs here
27 | ^^^ use of borrowed `x`
29 | ------- borrow later used here
31 error[E0503]: cannot use `x.a` because it was mutably borrowed
32 --> $DIR/borrowck-use-mut-borrow.rs:32:10
34 LL | let p = &mut x.a;
35 | -------- borrow of `x.a` occurs here
37 | ^^^ use of borrowed `x.a`
39 | ------ borrow later used here
41 error[E0503]: cannot use `x.a` because it was mutably borrowed
42 --> $DIR/borrowck-use-mut-borrow.rs:39:13
45 | ------ borrow of `x` occurs here
46 LL | let y = A { b: 3, .. x };
47 | ^^^^^^^^^^^^^^^^ use of borrowed `x`
50 | ------- borrow later used here
52 error[E0503]: cannot use `x.a` because it was mutably borrowed
53 --> $DIR/borrowck-use-mut-borrow.rs:47:13
55 LL | let p = &mut x.a;
56 | -------- borrow of `x.a` occurs here
57 LL | let y = A { b: 3, .. x };
58 | ^^^^^^^^^^^^^^^^ use of borrowed `x.a`
61 | ------ borrow later used here
63 error[E0503]: cannot use `*x` because it was mutably borrowed
64 --> $DIR/borrowck-use-mut-borrow.rs:55:10
67 | ------ borrow of `x` occurs here
69 | ^^ use of borrowed `x`
71 | ------- borrow later used here
73 error[E0503]: cannot use `*x.b` because it was mutably borrowed
74 --> $DIR/borrowck-use-mut-borrow.rs:62:10
77 | ------ borrow of `x` occurs here
79 | ^^^^ use of borrowed `x`
81 | ------- borrow later used here
83 error[E0503]: cannot use `*x.b` because it was mutably borrowed
84 --> $DIR/borrowck-use-mut-borrow.rs:69:10
86 LL | let p = &mut x.b;
87 | -------- borrow of `x.b` occurs here
89 | ^^^^ use of borrowed `x.b`
91 | ------- borrow later used here
93 error: aborting due to 9 previous errors
95 For more information about this error, try `rustc --explain E0503`.