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
4 LL | fn assert_unpin<T: Unpin>(_: T) {
5 | ----- required by this bound in `assert_unpin`
7 LL | assert_unpin(generator);
8 | ^^^^^^^^^ the trait `Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6]`
10 = note: consider using `Box::pin`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0277`.