2019-11-11 11:39:52 +01:00
|
|
|
error[E0382]: use of moved value
|
2020-08-31 02:59:56 +08:00
|
|
|
--> $DIR/bind-by-move-no-subbindings-fun-param.rs:9:12
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
|
LL | fn f(a @ A(u): A) -> Box<u8> {
|
|
|
|
|
| ------^-
|
|
|
|
|
| | |
|
|
|
|
|
| | value used here after move
|
|
|
|
|
| value moved here
|
|
|
|
|
| move occurs because value has type `A`, which does not implement the `Copy` trait
|
|
|
|
|
|
2020-01-19 02:47:01 +01:00
|
|
|
error: aborting due to previous error
|
2019-11-11 11:39:52 +01:00
|
|
|
|
2020-01-19 02:47:01 +01:00
|
|
|
For more information about this error, try `rustc --explain E0382`.
|