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