]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-40402-ref-hints/issue-40402-2.stderr
Rollup merge of #58976 - phil-opp:patch-2, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-40402-ref-hints / issue-40402-2.stderr
1 error[E0507]: cannot move out of indexed content
2   --> $DIR/issue-40402-2.rs:5:18
3    |
4 LL |     let (a, b) = x[0];
5    |          -  -    ^^^^ cannot move out of indexed content
6    |          |  |
7    |          |  ...and here (use `ref b` or `ref mut b`)
8    |          hint: to prevent move, use `ref a` or `ref mut a`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0507`.