fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
838 B19 linesraw
1error[E0382]: borrow of moved value: `helpers`
2  --> $DIR/copy-suggestion-region-vid.rs:13:43
3   |
4LL |         let helpers = [vec![], vec![]];
5   |             ------- move occurs because `helpers` has type `[Vec<&i64>; 2]`, which does not implement the `Copy` trait
6LL |
7LL |         HelperStruct { helpers, is_empty: helpers[0].is_empty() }
8   |                        -------            ^^^^^^^^^^ value borrowed here after move
9   |                        |
10   |                        value moved here
11   |
12help: consider cloning the value if the performance cost is acceptable
13   |
14LL |         HelperStruct { helpers: helpers.clone(), is_empty: helpers[0].is_empty() }
15   |                               +++++++++++++++++
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0382`.