]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-should-say-copy-not-pod.stderr
Simplify Cache wrapper to single type, impl Deref on it, fix all compilation errors...
[rust.git] / src / test / ui / error-should-say-copy-not-pod.stderr
1 error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
2   --> $DIR/error-should-say-copy-not-pod.rs:6:17
3    |
4 LL | fn check_bound<T:Copy>(_: T) {}
5    |    -----------   ---- required by this bound in `check_bound`
6 ...
7 LL |     check_bound("nocopy".to_string());
8    |                 ^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0277`.