]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/static-not-unpin.stderr
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / generator / static-not-unpin.stderr
1 error[E0277]: `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6]` cannot be unpinned
2   --> $DIR/static-not-unpin.rs:14:18
3    |
4 LL | fn assert_unpin<T: Unpin>(_: T) {
5    |                    ----- required by this bound in `assert_unpin`
6 ...
7 LL |     assert_unpin(generator);
8    |                  ^^^^^^^^^ the trait `Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6]`
9    |
10    = note: consider using `Box::pin`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.