1 error[E0277]: the trait bound `T: Copy` is not satisfied
2 --> $DIR/wf-in-fn-type-ret.rs:9:16
4 LL | x: fn() -> MustBeCopy<T>
5 | ^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
7 note: required by a bound in `MustBeCopy`
8 --> $DIR/wf-in-fn-type-ret.rs:3:21
10 LL | struct MustBeCopy<T:Copy> {
11 | ^^^^ required by this bound in `MustBeCopy`
12 help: consider restricting type parameter `T`
14 LL | struct Foo<T: std::marker::Copy> {
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0277`.