fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0505]: cannot move out of `a` because it is borrowed 2 --> $DIR/variance-issue-20533.rs:28:14 3 | 4LL | let a = AffineU32(1); 5 | - binding `a` declared here 6LL | let x = foo(&a); 7 | -- borrow of `a` occurs here 8LL | drop(a); 9 | ^ move out of `a` occurs here 10LL | drop(x); 11 | - borrow later used here 12 13error[E0505]: cannot move out of `a` because it is borrowed 14 --> $DIR/variance-issue-20533.rs:34:14 15 | 16LL | let a = AffineU32(1); 17 | - binding `a` declared here 18LL | let x = bar(&a); 19 | -- borrow of `a` occurs here 20LL | drop(a); 21 | ^ move out of `a` occurs here 22LL | drop(x); 23 | - borrow later used here 24 25error[E0505]: cannot move out of `a` because it is borrowed 26 --> $DIR/variance-issue-20533.rs:40:14 27 | 28LL | let a = AffineU32(1); 29 | - binding `a` declared here 30LL | let x = baz(&a); 31 | -- borrow of `a` occurs here 32LL | drop(a); 33 | ^ move out of `a` occurs here 34LL | drop(x); 35 | - borrow later used here 36 37error: aborting due to 3 previous errors 38 39For more information about this error, try `rustc --explain E0505`.