]> git.lizzy.rs Git - rust.git/blob - src/test/ui/trivial-bounds/trivial-bounds-leak-copy.stderr
e96a24196863c478e088c6b1d6c753ac61659247
[rust.git] / src / test / ui / trivial-bounds / trivial-bounds-leak-copy.stderr
1 error[E0507]: cannot move out of `*t` which is behind a shared reference
2   --> $DIR/trivial-bounds-leak-copy.rs:9:5
3    |
4 LL |     *t
5    |     ^^ move occurs because `*t` has type `std::string::String`, 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`.