]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-90164.stderr
Rollup merge of #106788 - estebank:elaborate_pred_E0599, r=compiler-errors
[rust.git] / tests / ui / typeck / issue-90164.stderr
1 error[E0277]: `T` cannot be unpinned
2   --> $DIR/issue-90164.rs:5:10
3    |
4 LL |     copy(r, w);
5    |     ---- ^ the trait `Unpin` is not implemented for `T`
6    |     |
7    |     required by a bound introduced by this call
8    |
9    = note: consider using `Box::pin`
10 note: required by a bound in `copy`
11   --> $DIR/issue-90164.rs:1:12
12    |
13 LL | fn copy<R: Unpin, W>(_: R, _: W) {}
14    |            ^^^^^ required by this bound in `copy`
15 help: consider restricting type parameter `T`
16    |
17 LL | fn f<T: std::marker::Unpin>(r: T) {
18    |       ++++++++++++++++++++
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0277`.