error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied | |
--> $DIR/wf-in-fn-where-clause.rs:9:1 | |
| | |
LL | trait MustBeCopy<T:Copy> { | |
| ------------------------ required by `MustBeCopy` | |
... | |
LL | / fn bar<T,U>() | |
LL | | where T: MustBeCopy<U> | |
LL | | { | |
LL | | } | |
| |_^ the trait `std::marker::Copy` is not implemented for `U` | |
| | |
= help: consider adding a `where U: std::marker::Copy` bound | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0277`. |