1 error[E0503]: cannot use `*x` because it was mutably borrowed
2 --> $DIR/two-phase-nonrecv-autoref.rs:41:12
5 | - ^^ use of borrowed `*x`
7 | borrow of `*x` occurs here
9 error[E0499]: cannot borrow `*f` as mutable more than once at a time
10 --> $DIR/two-phase-nonrecv-autoref.rs:70:11
13 | - ^ - first borrow ends here
15 | | second mutable borrow occurs here
16 | first mutable borrow occurs here
18 error[E0382]: use of moved value: `*f`
19 --> $DIR/two-phase-nonrecv-autoref.rs:79:11
22 | - ^ value used here after move
26 = note: move occurs because `*f` has type `F`, which does not implement the `Copy` trait
28 error[E0499]: cannot borrow `*f` as mutable more than once at a time
29 --> $DIR/two-phase-nonrecv-autoref.rs:86:11
32 | - ^ - first borrow ends here
34 | | second mutable borrow occurs here
35 | first mutable borrow occurs here
37 error[E0382]: use of moved value: `*f`
38 --> $DIR/two-phase-nonrecv-autoref.rs:95:11
41 | - ^ value used here after move
45 = note: move occurs because `*f` has type `(dyn std::ops::FnOnce(i32) -> i32 + 'static)`, which does not implement the `Copy` trait
47 error[E0502]: cannot borrow `a` as immutable because it is also borrowed as mutable
48 --> $DIR/two-phase-nonrecv-autoref.rs:139:28
50 LL | double_access(&mut a, &a);
51 | - ^- mutable borrow ends here
53 | | immutable borrow occurs here
54 | mutable borrow occurs here
56 error[E0502]: cannot borrow `a` as immutable because it is also borrowed as mutable
57 --> $DIR/two-phase-nonrecv-autoref.rs:145:9
60 | - ^ - mutable borrow ends here
62 | | immutable borrow occurs here
63 | mutable borrow occurs here
65 error[E0502]: cannot borrow `i` as immutable because it is also borrowed as mutable
66 --> $DIR/two-phase-nonrecv-autoref.rs:167:7
69 | - ^ - mutable borrow ends here
71 | | immutable borrow occurs here
72 | mutable borrow occurs here
74 error[E0502]: cannot borrow `i` as immutable because it is also borrowed as mutable
75 --> $DIR/two-phase-nonrecv-autoref.rs:173:7
78 | - ^ - mutable borrow ends here
80 | | immutable borrow occurs here
81 | mutable borrow occurs here
83 error[E0502]: cannot borrow `v` as immutable because it is also borrowed as mutable
84 --> $DIR/two-phase-nonrecv-autoref.rs:182:12
87 | - ^ - mutable borrow ends here
89 | | immutable borrow occurs here
90 | mutable borrow occurs here
92 error[E0502]: cannot borrow `s` as immutable because it is also borrowed as mutable
93 --> $DIR/two-phase-nonrecv-autoref.rs:193:9
96 | - ^ - mutable borrow ends here
98 | | immutable borrow occurs here
99 | mutable borrow occurs here
101 error[E0502]: cannot borrow `t` as immutable because it is also borrowed as mutable
102 --> $DIR/two-phase-nonrecv-autoref.rs:198:9
105 | - ^ - mutable borrow ends here
107 | | immutable borrow occurs here
108 | mutable borrow occurs here
110 error: aborting due to 12 previous errors
112 Some errors occurred: E0382, E0499, E0502, E0503.
113 For more information about an error, try `rustc --explain E0382`.