1 2 3 4 5 6 7 8 9
fn copy<R: Unpin, W>(_: R, _: W) {} fn f<T>(r: T) { let w = (); copy(r, w); //~^ ERROR [E0277] } fn main() {}