1 error[E0277]: `[static generator@$DIR/static-not-unpin.rs:11:25: 11:34]` cannot be unpinned
2 --> $DIR/static-not-unpin.rs:14:18
4 LL | assert_unpin(generator);
5 | ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:11:25: 11:34]`
7 | required by a bound introduced by this call
9 = note: consider using `Box::pin`
10 note: required by a bound in `assert_unpin`
11 --> $DIR/static-not-unpin.rs:7:20
13 LL | fn assert_unpin<T: Unpin>(_: T) {
14 | ^^^^^ required by this bound in `assert_unpin`
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0277`.