]> git.lizzy.rs Git - rust.git/blob - src/test/ui/walk-struct-literal-with.stderr
Remove licenses
[rust.git] / src / test / ui / walk-struct-literal-with.stderr
1 error[E0382]: use of moved value: `start.test`
2   --> $DIR/walk-struct-literal-with.rs:16:20
3    |
4 LL |     let end = Mine{other_val:1, ..start.make_string_bar()};
5    |                                   ----- value moved here
6 LL |     println!("{}", start.test); //~ ERROR use of moved value: `start.test`
7    |                    ^^^^^^^^^^ value used here after move
8    |
9    = note: move occurs because `start` has type `Mine`, which does not implement the `Copy` trait
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0382`.