blob: ad1a2db8b52bafb257b64f41689ce4eccd8ea9c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
error[E0382]: borrow of partially moved value: `x`
--> $DIR/moves-based-on-type-match-bindings.rs:16:11
|
LL | Foo {f} => {}
| - value partially moved here
...
LL | touch(&x);
| ^^ value borrowed here after partial move
|
= note: partial move occurs because `x.f` has type `String`, which does not implement the `Copy` trait
error: aborting due to previous error
For more information about this error, try `rustc --explain E0382`.
|