blob: 62e16df583f8751504850ccc6d7b1a609a23cc46 [file] [log] [blame]
error[E0382]: use of partially moved value: `x`
--> $DIR/moves-based-on-type-match-bindings.rs:26:12
|
LL | Foo {f} => {}
| - value moved here
...
LL | touch(&x); //~ ERROR use of partially moved value: `x`
| ^ value used here after move
|
= note: move occurs because `x.f` has type `std::string::String`, which does not implement the `Copy` trait
error: aborting due to previous error
For more information about this error, try `rustc --explain E0382`.