rust/src/test/ui/wf/wf-in-fn-arg.stderr

19 lines
551 B
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied
2018-12-25 08:56:47 -07:00
--> $DIR/wf-in-fn-arg.rs:10:1
2018-08-08 14:28:26 +02:00
|
LL | / fn bar<T>(_: &MustBeCopy<T>) //~ ERROR E0277
LL | | {
LL | | }
| |_^ the trait `std::marker::Copy` is not implemented for `T`
|
= help: consider adding a `where T: std::marker::Copy` bound
note: required by `MustBeCopy`
2018-12-25 08:56:47 -07:00
--> $DIR/wf-in-fn-arg.rs:6:1
2018-08-08 14:28:26 +02:00
|
LL | struct MustBeCopy<T:Copy> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.