Advertisement
Guest User

Untitled

a guest
May 6th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.40 KB | None | 0 0
  1. error[E0277]: the trait bound `std::future::GenFuture<[static generator@src/main.rs:19:23: 21:2 {}]>: std::marker::Unpin` is not satisfied in `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  2. --> src/main.rs:13:18
  3. |
  4. 13 | await!(s.next());
  5. | ^^^^ within `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`, the trait `std::marker::Unpin` is not implemented for `std::future::GenFuture<[static generator@src/main.rs:19:23: 21:2 {}]>`
  6. |
  7. = help: the following implementations were found:
  8. <std::future::GenFuture<T> as std::marker::Unpin>
  9. = note: required because it appears within the type `impl core::future::future::Future`
  10. = note: required because it appears within the type `impl core::future::future::Future`
  11. = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
  12. = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  13. = note: required because of the requirements on the impl of `std::marker::Unpin` for `futures_util::stream::select::Select<futures_util::future::into_stream::IntoStream<impl core::future::future::Future>, futures_util::future::into_stream::IntoStream<impl core::future::future::Future>>`
  14.  
  15. error[E0277]: the trait bound `std::future::GenFuture<[static generator@src/main.rs:23:23: 25:2 {}]>: std::marker::Unpin` is not satisfied in `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  16. --> src/main.rs:13:18
  17. |
  18. 13 | await!(s.next());
  19. | ^^^^ within `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`, the trait `std::marker::Unpin` is not implemented for `std::future::GenFuture<[static generator@src/main.rs:23:23: 25:2 {}]>`
  20. |
  21. = help: the following implementations were found:
  22. <std::future::GenFuture<T> as std::marker::Unpin>
  23. = note: required because it appears within the type `impl core::future::future::Future`
  24. = note: required because it appears within the type `impl core::future::future::Future`
  25. = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
  26. = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  27. = note: required because of the requirements on the impl of `std::marker::Unpin` for `futures_util::stream::select::Select<futures_util::future::into_stream::IntoStream<impl core::future::future::Future>, futures_util::future::into_stream::IntoStream<impl core::future::future::Future>>`
  28.  
  29. error[E0277]: the trait bound `std::future::GenFuture<[static generator@src/main.rs:19:23: 21:2 {}]>: std::marker::Unpin` is not satisfied in `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  30. --> src/main.rs:13:9
  31. |
  32. 13 | await!(s.next());
  33. | ^^^^^^^^^^^^^^^^^ within `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`, the trait `std::marker::Unpin` is not implemented for `std::future::GenFuture<[static generator@src/main.rs:19:23: 21:2 {}]>`
  34. |
  35. = help: the following implementations were found:
  36. <std::future::GenFuture<T> as std::marker::Unpin>
  37. = note: required because it appears within the type `impl core::future::future::Future`
  38. = note: required because it appears within the type `impl core::future::future::Future`
  39. = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
  40. = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  41. = note: required because of the requirements on the impl of `std::marker::Unpin` for `futures_util::stream::select::Select<futures_util::future::into_stream::IntoStream<impl core::future::future::Future>, futures_util::future::into_stream::IntoStream<impl core::future::future::Future>>`
  42. = note: required because of the requirements on the impl of `core::future::future::Future` for `futures_util::stream::next::Next<'_, futures_util::stream::select::Select<futures_util::future::into_stream::IntoStream<impl core::future::future::Future>, futures_util::future::into_stream::IntoStream<impl core::future::future::Future>>>`
  43. = note: required by `std::future::poll_with_tls_context`
  44. = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
  45.  
  46. error[E0277]: the trait bound `std::future::GenFuture<[static generator@src/main.rs:23:23: 25:2 {}]>: std::marker::Unpin` is not satisfied in `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  47. --> src/main.rs:13:9
  48. |
  49. 13 | await!(s.next());
  50. | ^^^^^^^^^^^^^^^^^ within `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`, the trait `std::marker::Unpin` is not implemented for `std::future::GenFuture<[static generator@src/main.rs:23:23: 25:2 {}]>`
  51. |
  52. = help: the following implementations were found:
  53. <std::future::GenFuture<T> as std::marker::Unpin>
  54. = note: required because it appears within the type `impl core::future::future::Future`
  55. = note: required because it appears within the type `impl core::future::future::Future`
  56. = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
  57. = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  58. = note: required because of the requirements on the impl of `std::marker::Unpin` for `futures_util::stream::select::Select<futures_util::future::into_stream::IntoStream<impl core::future::future::Future>, futures_util::future::into_stream::IntoStream<impl core::future::future::Future>>`
  59. = note: required because of the requirements on the impl of `core::future::future::Future` for `futures_util::stream::next::Next<'_, futures_util::stream::select::Select<futures_util::future::into_stream::IntoStream<impl core::future::future::Future>, futures_util::future::into_stream::IntoStream<impl core::future::future::Future>>>`
  60. = note: required by `std::future::poll_with_tls_context`
  61. = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
  62.  
  63. error: aborting due to 4 previous errors
  64.  
  65. For more information about this error, try `rustc --explain E0277`.
  66. error: Could not compile `awaitesting`.
  67.  
  68. To learn more, run the command again with --verbose.
  69. error[E0277]: the trait bound `std::future::GenFuture<[static generator@src/main.rs:19:23: 21:2 {}]>: std::marker::Unpin` is not satisfied in `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  70. --> src/main.rs:13:18
  71. |
  72. 13 | await!(s.next());
  73. | ^^^^ within `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`, the trait `std::marker::Unpin` is not implemented for `std::future::GenFuture<[static generator@src/main.rs:19:23: 21:2 {}]>`
  74. |
  75. = help: the following implementations were found:
  76. <std::future::GenFuture<T> as std::marker::Unpin>
  77. = note: required because it appears within the type `impl core::future::future::Future`
  78. = note: required because it appears within the type `impl core::future::future::Future`
  79. = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
  80. = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  81. = note: required because of the requirements on the impl of `std::marker::Unpin` for `futures_util::stream::select::Select<futures_util::future::into_stream::IntoStream<impl core::future::future::Future>, futures_util::future::into_stream::IntoStream<impl core::future::future::Future>>`
  82.  
  83. error[E0277]: the trait bound `std::future::GenFuture<[static generator@src/main.rs:23:23: 25:2 {}]>: std::marker::Unpin` is not satisfied in `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  84. --> src/main.rs:13:18
  85. |
  86. 13 | await!(s.next());
  87. | ^^^^ within `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`, the trait `std::marker::Unpin` is not implemented for `std::future::GenFuture<[static generator@src/main.rs:23:23: 25:2 {}]>`
  88. |
  89. = help: the following implementations were found:
  90. <std::future::GenFuture<T> as std::marker::Unpin>
  91. = note: required because it appears within the type `impl core::future::future::Future`
  92. = note: required because it appears within the type `impl core::future::future::Future`
  93. = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
  94. = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  95. = note: required because of the requirements on the impl of `std::marker::Unpin` for `futures_util::stream::select::Select<futures_util::future::into_stream::IntoStream<impl core::future::future::Future>, futures_util::future::into_stream::IntoStream<impl core::future::future::Future>>`
  96.  
  97. error[E0277]: the trait bound `std::future::GenFuture<[static generator@src/main.rs:19:23: 21:2 {}]>: std::marker::Unpin` is not satisfied in `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  98. --> src/main.rs:13:9
  99. |
  100. 13 | await!(s.next());
  101. | ^^^^^^^^^^^^^^^^^ within `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`, the trait `std::marker::Unpin` is not implemented for `std::future::GenFuture<[static generator@src/main.rs:19:23: 21:2 {}]>`
  102. |
  103. = help: the following implementations were found:
  104. <std::future::GenFuture<T> as std::marker::Unpin>
  105. = note: required because it appears within the type `impl core::future::future::Future`
  106. = note: required because it appears within the type `impl core::future::future::Future`
  107. = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
  108. = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  109. = note: required because of the requirements on the impl of `std::marker::Unpin` for `futures_util::stream::select::Select<futures_util::future::into_stream::IntoStream<impl core::future::future::Future>, futures_util::future::into_stream::IntoStream<impl core::future::future::Future>>`
  110. = note: required because of the requirements on the impl of `core::future::future::Future` for `futures_util::stream::next::Next<'_, futures_util::stream::select::Select<futures_util::future::into_stream::IntoStream<impl core::future::future::Future>, futures_util::future::into_stream::IntoStream<impl core::future::future::Future>>>`
  111. = note: required by `std::future::poll_with_tls_context`
  112. = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
  113.  
  114. error[E0277]: the trait bound `std::future::GenFuture<[static generator@src/main.rs:23:23: 25:2 {}]>: std::marker::Unpin` is not satisfied in `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  115. --> src/main.rs:13:9
  116. |
  117. 13 | await!(s.next());
  118. | ^^^^^^^^^^^^^^^^^ within `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`, the trait `std::marker::Unpin` is not implemented for `std::future::GenFuture<[static generator@src/main.rs:23:23: 25:2 {}]>`
  119. |
  120. = help: the following implementations were found:
  121. <std::future::GenFuture<T> as std::marker::Unpin>
  122. = note: required because it appears within the type `impl core::future::future::Future`
  123. = note: required because it appears within the type `impl core::future::future::Future`
  124. = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
  125. = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
  126. = note: required because of the requirements on the impl of `std::marker::Unpin` for `futures_util::stream::select::Select<futures_util::future::into_stream::IntoStream<impl core::future::future::Future>, futures_util::future::into_stream::IntoStream<impl core::future::future::Future>>`
  127. = note: required because of the requirements on the impl of `core::future::future::Future` for `futures_util::stream::next::Next<'_, futures_util::stream::select::Select<futures_util::future::into_stream::IntoStream<impl core::future::future::Future>, futures_util::future::into_stream::IntoStream<impl core::future::future::Future>>>`
  128. = note: required by `std::future::poll_with_tls_context`
  129. = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
  130.  
  131. error: aborting due to 4 previous errors
  132.  
  133. For more information about this error, try `rustc --explain E0277`.
  134. error: Could not compile `awaitesting`.
  135.  
  136. To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement