]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-52262.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-52262.stderr
1 error[E0507]: cannot move out of `*key` which is behind a shared reference
2   --> $DIR/issue-52262.rs:16:35
3    |
4 LL |                 String::from_utf8(*key).unwrap()
5    |                                   ^^^^ move occurs because `*key` has type `Vec<u8>`, which does not implement the `Copy` trait
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0507`.