1 error[E0204]: the trait `Copy` may not be implemented for this type
2 --> $DIR/missing-bound-in-manual-copy-impl-2.rs:16:18
4 LL | struct Wrapper<T>(T);
5 | - this field does not implement `Copy`
7 LL | impl<S> Copy for Wrapper<OnlyCopyIfDisplay<S>> {}
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 note: the `Copy` impl for `OnlyCopyIfDisplay<S>` requires that `S: std::fmt::Display`
11 --> $DIR/missing-bound-in-manual-copy-impl-2.rs:4:19
13 LL | struct Wrapper<T>(T);
15 help: consider restricting type parameter `S`
17 LL | impl<S: std::fmt::Display> Copy for Wrapper<OnlyCopyIfDisplay<S>> {}
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0204`.