1 error[E0499]: cannot borrow `*f` as mutable more than once at a time
2 --> $DIR/two-phase-nonrecv-autoref.rs:60:11
5 | - ^ second mutable borrow occurs here
7 | first mutable borrow occurs here
8 | first borrow later used by call
10 error[E0382]: use of moved value: `*f`
11 --> $DIR/two-phase-nonrecv-autoref.rs:69:11
14 | - ^ value used here after move
18 = note: move occurs because `*f` has type `F`, which does not implement the `Copy` trait
20 error[E0499]: cannot borrow `*f` as mutable more than once at a time
21 --> $DIR/two-phase-nonrecv-autoref.rs:76:11
24 | - ^ second mutable borrow occurs here
26 | first mutable borrow occurs here
27 | first borrow later used by call
29 error[E0161]: cannot move a value of type dyn std::ops::FnOnce(i32) -> i32: the size of dyn std::ops::FnOnce(i32) -> i32 cannot be statically determined
30 --> $DIR/two-phase-nonrecv-autoref.rs:85:9
35 error[E0161]: cannot move a value of type dyn std::ops::FnOnce(i32) -> i32: the size of dyn std::ops::FnOnce(i32) -> i32 cannot be statically determined
36 --> $DIR/two-phase-nonrecv-autoref.rs:85:11
41 error[E0382]: use of moved value: `*f`
42 --> $DIR/two-phase-nonrecv-autoref.rs:85:11
45 | - ^ value used here after move
49 = note: move occurs because `*f` has type `dyn std::ops::FnOnce(i32) -> i32`, which does not implement the `Copy` trait
51 error[E0502]: cannot borrow `a` as immutable because it is also borrowed as mutable
52 --> $DIR/two-phase-nonrecv-autoref.rs:129:27
54 LL | double_access(&mut a, &a);
55 | ------------- ------ ^^ immutable borrow occurs here
57 | | mutable borrow occurs here
58 | mutable borrow later used by call
60 error[E0502]: cannot borrow `i` as immutable because it is also borrowed as mutable
61 --> $DIR/two-phase-nonrecv-autoref.rs:157:7
66 | | immutable borrow occurs here
67 | mutable borrow occurs here
68 | mutable borrow later used here
70 error[E0502]: cannot borrow `i` as immutable because it is also borrowed as mutable
71 --> $DIR/two-phase-nonrecv-autoref.rs:163:7
76 | | immutable borrow occurs here
77 | mutable borrow occurs here
78 | mutable borrow later used here
80 error: aborting due to 9 previous errors
82 Some errors occurred: E0161, E0382, E0499, E0502.
83 For more information about an error, try `rustc --explain E0161`.