2018-11-07 12:01:35 -06:00
|
|
|
error[E0277]: the trait bound `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6 _]: std::marker::Unpin` is not satisfied
|
|
|
|
--> $DIR/static-not-unpin.rs:14:5
|
2018-11-04 15:07:55 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | assert_unpin(generator);
|
2018-11-07 12:01:35 -06:00
|
|
|
| ^^^^^^^^^^^^ the trait `std::marker::Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6 _]`
|
2018-11-04 15:07:55 -06:00
|
|
|
|
|
|
|
|
note: required by `assert_unpin`
|
2018-11-07 12:01:35 -06:00
|
|
|
--> $DIR/static-not-unpin.rs:7:1
|
2018-11-04 15:07:55 -06:00
|
|
|
|
|
|
|
|
LL | fn assert_unpin<T: Unpin>(_: T) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|