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
6 LL | drop(x); //~ ERROR cannot use `x` because it was mutably borrowed
7 | ^ use of borrowed `x`
9 error[E0503]: cannot use `x` because it was mutably borrowed
10 --> $DIR/borrowck-use-mut-borrow.rs:18:10
12 LL | let p = &mut x.a;
13 | --- borrow of `x.a` occurs here
14 LL | drop(x); //~ ERROR cannot use `x` because it was mutably borrowed
15 | ^ use of borrowed `x.a`
17 error[E0503]: cannot use `x.a` because it was mutably borrowed
18 --> $DIR/borrowck-use-mut-borrow.rs:25:10
21 | - borrow of `x` occurs here
22 LL | drop(x.a); //~ ERROR cannot use `x.a` because it was mutably borrowed
23 | ^^^ use of borrowed `x`
25 error[E0503]: cannot use `x.a` because it was mutably borrowed
26 --> $DIR/borrowck-use-mut-borrow.rs:32:10
28 LL | let p = &mut x.a;
29 | --- borrow of `x.a` occurs here
30 LL | drop(x.a); //~ ERROR cannot use `x.a` because it was mutably borrowed
31 | ^^^ use of borrowed `x.a`
33 error[E0503]: cannot use `x.a` because it was mutably borrowed
34 --> $DIR/borrowck-use-mut-borrow.rs:39:26
37 | - borrow of `x` occurs here
38 LL | let y = A { b: 3, .. x }; //~ ERROR cannot use `x.a` because it was mutably borrowed
39 | ^ use of borrowed `x`
41 error[E0503]: cannot use `x.a` because it was mutably borrowed
42 --> $DIR/borrowck-use-mut-borrow.rs:47:26
44 LL | let p = &mut x.a;
45 | --- borrow of `x.a` occurs here
46 LL | let y = A { b: 3, .. x }; //~ ERROR cannot use `x.a` because it was mutably borrowed
47 | ^ use of borrowed `x.a`
49 error[E0503]: cannot use `*x` because it was mutably borrowed
50 --> $DIR/borrowck-use-mut-borrow.rs:55:10
53 | - borrow of `x` occurs here
54 LL | drop(*x); //~ ERROR cannot use `*x` because it was mutably borrowed
55 | ^^ use of borrowed `x`
57 error[E0503]: cannot use `*x.b` because it was mutably borrowed
58 --> $DIR/borrowck-use-mut-borrow.rs:62:10
61 | - borrow of `x` occurs here
62 LL | drop(*x.b); //~ ERROR cannot use `*x.b` because it was mutably borrowed
63 | ^^^^ use of borrowed `x`
65 error[E0503]: cannot use `*x.b` because it was mutably borrowed
66 --> $DIR/borrowck-use-mut-borrow.rs:69:10
68 LL | let p = &mut x.b;
69 | --- borrow of `x.b` occurs here
70 LL | drop(*x.b); //~ ERROR cannot use `*x.b` because it was mutably borrowed
71 | ^^^^ use of borrowed `x.b`
73 error: aborting due to 9 previous errors
75 For more information about this error, try `rustc --explain E0503`.