]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-issue-2657-1.nll.stderr
Unit test from #57866.
[rust.git] / src / test / ui / borrowck / borrowck-issue-2657-1.nll.stderr
1 error[E0505]: cannot move out of `x` because it is borrowed
2   --> $DIR/borrowck-issue-2657-1.rs:9:18
3    |
4 LL |       Some(ref _y) => {
5    |            ------ borrow of `x.0` occurs here
6 LL |         let _a = x; //~ ERROR cannot move
7    |                  ^ move out of `x` occurs here
8 LL |         _y.use_ref();
9    |         -- borrow later used here
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0505`.