]> git.lizzy.rs Git - rust.git/blob - src/test/ui/moves/moves-based-on-type-match-bindings.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / moves / moves-based-on-type-match-bindings.stderr
1 error[E0382]: use of partially moved value: `x`
2   --> $DIR/moves-based-on-type-match-bindings.rs:16:12
3    |
4 LL |         Foo {f} => {}
5    |              - value moved here
6 ...
7 LL |     touch(&x); //~ ERROR use of partially moved value: `x`
8    |            ^ value used here after move
9    |
10    = note: move occurs because `x.f` has type `std::string::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`.