]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-issue-20533.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[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); //~ ERROR cannot move out of `a`
7    |              ^ move out of `a` occurs here
8
9 error[E0505]: cannot move out of `a` because it is borrowed
10   --> $DIR/variance-issue-20533.rs:34:14
11    |
12 LL |         let x = bar(&a);
13    |                      - borrow of `a` occurs here
14 LL |         drop(a); //~ ERROR cannot move out of `a`
15    |              ^ move out of `a` occurs here
16
17 error[E0505]: cannot move out of `a` because it is borrowed
18   --> $DIR/variance-issue-20533.rs:40:14
19    |
20 LL |         let x = baz(&a);
21    |                      - borrow of `a` occurs here
22 LL |         drop(a); //~ ERROR cannot move out of `a`
23    |              ^ move out of `a` occurs here
24
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0505`.