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 `std::string::String`, which does not implement the `Copy` trait
7 LL | let _y = Foo { f:x };
11 | ^^ value borrowed here after move
13 error[E0382]: borrow of moved value: `x`
14 --> $DIR/moves-based-on-type-distribute-copy-over-paren.rs:21:11
16 LL | let x = "hi".to_string();
17 | - move occurs because `x` has type `std::string::String`, which does not implement the `Copy` trait
19 LL | let _y = Foo { f:(((x))) };
20 | ------- value moved here
23 | ^^ value borrowed here after move
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0382`.