]>
Commit | Line | Data |
---|---|---|
353b0b11 FG |
1 | error[E0277]: `[static generator@$DIR/static-not-unpin.rs:14:25: 14:34]` cannot be unpinned |
2 | --> $DIR/static-not-unpin.rs:17:18 | |
9fa01778 | 3 | | |
e1599b0c | 4 | LL | assert_unpin(generator); |
353b0b11 | 5 | | ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:14:25: 14:34]` |
c295e0f8 XL |
6 | | | |
7 | | required by a bound introduced by this call | |
cdc7bbd5 | 8 | | |
353b0b11 FG |
9 | = note: consider using the `pin!` macro |
10 | consider using `Box::pin` if you need to access the pinned value outside of the current scope | |
94222f64 | 11 | note: required by a bound in `assert_unpin` |
353b0b11 | 12 | --> $DIR/static-not-unpin.rs:10:20 |
94222f64 XL |
13 | | |
14 | LL | fn assert_unpin<T: Unpin>(_: T) { | |
15 | | ^^^^^ required by this bound in `assert_unpin` | |
9fa01778 XL |
16 | |
17 | error: aborting due to previous error | |
18 | ||
19 | For more information about this error, try `rustc --explain E0277`. |