2018-08-08 14:28:26 +02:00
|
|
|
error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/error-should-say-copy-not-pod.rs:6:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | fn check_bound<T:Copy>(_: T) {}
|
|
|
|
| ---------------------------- required by `check_bound`
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | check_bound("nocopy".to_string());
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|