1 error[E0277]: `T` cannot be unpinned
2 --> $DIR/issue-90164.rs:5:10
5 | ---- ^ the trait `Unpin` is not implemented for `T`
7 | required by a bound introduced by this call
9 = note: consider using `Box::pin`
10 note: required by a bound in `copy`
11 --> $DIR/issue-90164.rs:1:12
13 LL | fn copy<R: Unpin, W>(_: R, _: W) {}
14 | ^^^^^ required by this bound in `copy`
15 help: consider restricting type parameter `T`
17 LL | fn f<T: std::marker::Unpin>(r: T) {
18 | ++++++++++++++++++++
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0277`.