]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-40402-ref-hints/issue-40402-2.stderr
Rollup merge of #60022 - nathankleyn:fix-issue-59543, r=Centril
[rust.git] / src / test / ui / issues / issue-40402-ref-hints / issue-40402-2.stderr
1 error[E0507]: cannot move out of borrowed content
2   --> $DIR/issue-40402-2.rs:5:18
3    |
4 LL |     let (a, b) = x[0];
5    |          -  -    ^^^^
6    |          |  |    |
7    |          |  |    cannot move out of borrowed content
8    |          |  |    help: consider borrowing here: `&x[0]`
9    |          |  ...and here
10    |          data moved here
11    |
12 note: move occurs because these variables have types that don't implement the `Copy` trait
13   --> $DIR/issue-40402-2.rs:5:10
14    |
15 LL |     let (a, b) = x[0];
16    |          ^  ^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0507`.