fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
603 B13 linesraw
1error[E0382]: borrow of moved value: `start`
2  --> $DIR/walk-struct-literal-with.rs:16:20
3   |
4LL |     let start = Mine{test:"Foo".to_string(), other_val:0};
5   |         ----- move occurs because `start` has type `Mine`, which does not implement the `Copy` trait
6LL |     let end = Mine{other_val:1, ..start.make_string_bar()};
7   |                                   ----- value moved here
8LL |     println!("{}", start.test);
9   |                    ^^^^^^^^^^ value borrowed here after move
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0382`.