fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
521 B14 linesraw
1error[E0507]: cannot move out of index of `std::vec::Vec<(std::string::String, std::string::String)>`
2  --> $DIR/issue-40402-2.rs:5:18
3   |
4LL |     let (a, b) = x[0];
5   |          -  -    ^^^^ help: consider borrowing here: `&x[0]`
6   |          |  |
7   |          |  ...and here
8   |          data moved here
9   |
10   = note: move occurs because these variables have types that don't implement the `Copy` trait
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0507`.