]> git.proxmox.com Git - rustc.git/blob - tests/ui/variance/variance-issue-20533.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / 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 a = AffineU32(1);
5 | - binding `a` declared here
6 LL | let x = foo(&a);
7 | -- borrow of `a` occurs here
8 LL | drop(a);
9 | ^ move out of `a` occurs here
10 LL | drop(x);
11 | - borrow later used here
12
13 error[E0505]: cannot move out of `a` because it is borrowed
14 --> $DIR/variance-issue-20533.rs:34:14
15 |
16 LL | let a = AffineU32(1);
17 | - binding `a` declared here
18 LL | let x = bar(&a);
19 | -- borrow of `a` occurs here
20 LL | drop(a);
21 | ^ move out of `a` occurs here
22 LL | drop(x);
23 | - borrow later used here
24
25 error[E0505]: cannot move out of `a` because it is borrowed
26 --> $DIR/variance-issue-20533.rs:40:14
27 |
28 LL | let a = AffineU32(1);
29 | - binding `a` declared here
30 LL | let x = baz(&a);
31 | -- borrow of `a` occurs here
32 LL | drop(a);
33 | ^ move out of `a` occurs here
34 LL | drop(x);
35 | - borrow later used here
36
37 error: aborting due to 3 previous errors
38
39 For more information about this error, try `rustc --explain E0505`.