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