]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/copy-suggestion-region-vid.stderr
Do not use a suggestion to change a binding's name to a type
[rust.git] / src / test / ui / borrowck / copy-suggestion-region-vid.stderr
1 error[E0382]: borrow of moved value: `helpers`
2   --> $DIR/copy-suggestion-region-vid.rs:12:43
3    |
4 LL |         let helpers = [vec![], vec![]];
5    |             ------- move occurs because `helpers` has type `[Vec<&i64>; 2]`, which does not implement the `Copy` trait
6 LL |
7 LL |         HelperStruct { helpers, is_empty: helpers[0].is_empty() }
8    |                        -------            ^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move
9    |                        |
10    |                        value moved here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0382`.