rust/src/test/ui/generator/static-not-unpin.stderr

16 lines
645 B
Plaintext
Raw Normal View History

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