1 error[E0382]: borrow of moved value: `x`
2 --> $DIR/moves-based-on-type-distribute-copy-over-paren.rs:12:11
4 LL | let x = "hi".to_string();
5 | - move occurs because `x` has type `String`, which does not implement the `Copy` trait
7 LL | let _y = Foo { f:x };
11 | ^^ value borrowed here after move
13 help: consider cloning the value if the performance cost is acceptable
15 LL | let _y = Foo { f:x.clone() };
18 error[E0382]: borrow of moved value: `x`
19 --> $DIR/moves-based-on-type-distribute-copy-over-paren.rs:21:11
21 LL | let x = "hi".to_string();
22 | - move occurs because `x` has type `String`, which does not implement the `Copy` trait
24 LL | let _y = Foo { f:(((x))) };
25 | ------- value moved here
28 | ^^ value borrowed here after move
30 help: consider cloning the value if the performance cost is acceptable
32 LL | let _y = Foo { f:(((x))).clone() };
35 error: aborting due to 2 previous errors
37 For more information about this error, try `rustc --explain E0382`.