]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0505]: cannot move out of `x` because it is borrowed |
48663c56 | 2 | --> $DIR/borrowck-issue-2657-1.rs:9:18 |
b7449926 XL |
3 | | |
4 | LL | Some(ref _y) => { | |
5 | | ------ borrow of `x.0` occurs here | |
532ac7d7 | 6 | LL | let _a = x; |
48663c56 XL |
7 | | ^ move out of `x` occurs here |
8 | LL | _y.use_ref(); | |
c295e0f8 | 9 | | ------------ borrow later used here |
b7449926 XL |
10 | |
11 | error: aborting due to previous error | |
12 | ||
13 | For more information about this error, try `rustc --explain E0505`. |