]> git.proxmox.com Git - rustc.git/blame - src/test/ui/walk-struct-literal-with.nll.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / walk-struct-literal-with.nll.stderr
CommitLineData
0bf4aa26 1error[E0382]: borrow of moved value: `start`
0731742a 2 --> $DIR/walk-struct-literal-with.rs:16:20
b7449926 3 |
9fa01778
XL
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
b7449926
XL
6LL | let end = Mine{other_val:1, ..start.make_string_bar()};
7 | ----- value moved here
8LL | println!("{}", start.test); //~ ERROR use of moved value: `start.test`
9 | ^^^^^^^^^^ value borrowed here after move
b7449926
XL
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0382`.