2019-10-02 12:12:57 -05:00
|
|
|
error[E0507]: cannot move out of `*key` which is behind a shared reference
|
2022-11-18 04:25:32 -06:00
|
|
|
--> $DIR/issue-52262.rs:15:35
|
2019-10-02 12:12:57 -05:00
|
|
|
|
|
|
|
|
LL | String::from_utf8(*key).unwrap()
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^ move occurs because `*key` has type `Vec<u8>`, which does not implement the `Copy` trait
|
2019-10-02 12:12:57 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0507`.
|