]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-should-say-copy-not-pod.stderr
Auto merge of #53286 - nagisa:cast-assumes, r=eddyb
[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:16:5
3    |
4 LL |     check_bound("nocopy".to_string()); //~ ERROR : std::marker::Copy` is not satisfied
5    |     ^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
6    |
7 note: required by `check_bound`
8   --> $DIR/error-should-say-copy-not-pod.rs:13:1
9    |
10 LL | fn check_bound<T:Copy>(_: T) {}
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.