1 error[E0382]: borrow of partially moved value: `x`
2 --> $DIR/moves-based-on-type-match-bindings.rs:16:11
5 | - value partially moved here
8 | ^^ value borrowed here after partial move
10 = note: partial move occurs because `x.f` has type `String`, which does not implement the `Copy` trait
11 help: borrow this binding in the pattern to avoid moving the value
13 LL | Foo {ref f} => {}
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0382`.