Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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>`
- --> src/main.rs:13:18
- |
- 13 | await!(s.next());
- | ^^^^ 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 {}]>`
- |
- = help: the following implementations were found:
- <std::future::GenFuture<T> as std::marker::Unpin>
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
- = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
- = 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>>`
- 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>`
- --> src/main.rs:13:18
- |
- 13 | await!(s.next());
- | ^^^^ 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 {}]>`
- |
- = help: the following implementations were found:
- <std::future::GenFuture<T> as std::marker::Unpin>
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
- = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
- = 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>>`
- 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>`
- --> src/main.rs:13:9
- |
- 13 | await!(s.next());
- | ^^^^^^^^^^^^^^^^^ 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 {}]>`
- |
- = help: the following implementations were found:
- <std::future::GenFuture<T> as std::marker::Unpin>
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
- = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
- = 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>>`
- = 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>>>`
- = note: required by `std::future::poll_with_tls_context`
- = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
- 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>`
- --> src/main.rs:13:9
- |
- 13 | await!(s.next());
- | ^^^^^^^^^^^^^^^^^ 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 {}]>`
- |
- = help: the following implementations were found:
- <std::future::GenFuture<T> as std::marker::Unpin>
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
- = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
- = 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>>`
- = 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>>>`
- = note: required by `std::future::poll_with_tls_context`
- = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
- error: aborting due to 4 previous errors
- For more information about this error, try `rustc --explain E0277`.
- error: Could not compile `awaitesting`.
- To learn more, run the command again with --verbose.
- 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>`
- --> src/main.rs:13:18
- |
- 13 | await!(s.next());
- | ^^^^ 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 {}]>`
- |
- = help: the following implementations were found:
- <std::future::GenFuture<T> as std::marker::Unpin>
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
- = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
- = 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>>`
- 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>`
- --> src/main.rs:13:18
- |
- 13 | await!(s.next());
- | ^^^^ 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 {}]>`
- |
- = help: the following implementations were found:
- <std::future::GenFuture<T> as std::marker::Unpin>
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
- = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
- = 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>>`
- 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>`
- --> src/main.rs:13:9
- |
- 13 | await!(s.next());
- | ^^^^^^^^^^^^^^^^^ 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 {}]>`
- |
- = help: the following implementations were found:
- <std::future::GenFuture<T> as std::marker::Unpin>
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
- = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
- = 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>>`
- = 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>>>`
- = note: required by `std::future::poll_with_tls_context`
- = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
- 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>`
- --> src/main.rs:13:9
- |
- 13 | await!(s.next());
- | ^^^^^^^^^^^^^^^^^ 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 {}]>`
- |
- = help: the following implementations were found:
- <std::future::GenFuture<T> as std::marker::Unpin>
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `std::option::Option<impl core::future::future::Future>`
- = note: required because it appears within the type `futures_util::future::into_stream::IntoStream<impl core::future::future::Future>`
- = 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>>`
- = 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>>>`
- = note: required by `std::future::poll_with_tls_context`
- = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
- error: aborting due to 4 previous errors
- For more information about this error, try `rustc --explain E0277`.
- error: Could not compile `awaitesting`.
- To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement