rust/src/test/ui/error-should-say-copy-not-pod.stderr

16 lines
598 B
Plaintext
Raw Normal View History

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