]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-bad-nested-calls-move.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / borrowck-bad-nested-calls-move.stderr
1 error[E0505]: cannot move out of `a` because it is borrowed
2   --> $DIR/borrowck-bad-nested-calls-move.rs:25:9
3    |
4 LL |     add(
5    |     --- borrow later used by call
6 LL |         &*a,
7    |         --- borrow of `*a` occurs here
8 LL |         a);
9    |         ^ move out of `a` occurs here
10
11 error[E0505]: cannot move out of `a` because it is borrowed
12   --> $DIR/borrowck-bad-nested-calls-move.rs:32:9
13    |
14 LL |     add(
15    |     --- borrow later used by call
16 LL |         &*a,
17    |         --- borrow of `*a` occurs here
18 LL |         a);
19    |         ^ move out of `a` occurs here
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0505`.