Move occurs because value has type `X`, which does not implement the `Copy` trait

And how would I solve that?