]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-issue-20533.stderr
Merge commit '3d0b0e66afdfaa519d8855b338b35b4605775945' into clippyup
[rust.git] / src / test / ui / variance / variance-issue-20533.stderr
1 error[E0505]: cannot move out of `a` because it is borrowed
2   --> $DIR/variance-issue-20533.rs:28:14
3    |
4 LL |         let x = foo(&a);
5    |                     -- borrow of `a` occurs here
6 LL |         drop(a);
7    |              ^ move out of `a` occurs here
8 LL |         drop(x);
9    |              - borrow later used here
10
11 error[E0505]: cannot move out of `a` because it is borrowed
12   --> $DIR/variance-issue-20533.rs:34:14
13    |
14 LL |         let x = bar(&a);
15    |                     -- borrow of `a` occurs here
16 LL |         drop(a);
17    |              ^ move out of `a` occurs here
18 LL |         drop(x);
19    |              - borrow later used here
20
21 error[E0505]: cannot move out of `a` because it is borrowed
22   --> $DIR/variance-issue-20533.rs:40:14
23    |
24 LL |         let x = baz(&a);
25    |                     -- borrow of `a` occurs here
26 LL |         drop(a);
27    |              ^ move out of `a` occurs here
28 LL |         drop(x);
29    |              - borrow later used here
30
31 error: aborting due to 3 previous errors
32
33 For more information about this error, try `rustc --explain E0505`.