You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: `dyn Future<Output = Result<Item, pilota::thrift::DecodeError>> + Send` is not a future
--> /home/sen/code/volo-play/volo-example/target/debug/build/volo-gen-2f3f6b511768088d/out/volo_gen.rs:166:22
|
166 | ) -> ::std::pin::Pin<
| ______________________^
167 | | ::std::boxed::Box<
168 | | dyn ::std::future::Future<
169 | | Output = ::std::result::Result<Self, ::pilota::thrift::DecodeError>,
... |
172 | | >,
173 | | > {
| |_________________^ `dyn Future<Output = Result<Item, pilota::thrift::DecodeError>> + Send` is not a future
|
= help: the trait `Future` is not implemented for `dyn Future<Output = Result<Item, pilota::thrift::DecodeError>> + Send`
= note: dyn Future<Output = Result<Item, pilota::thrift::DecodeError>> + Send must be a future or must implement `IntoFuture` to be awaited
= note: required for `Pin<Box<dyn Future<Output = Result<Item, pilota::thrift::DecodeError>> + Send>>` to implement `Future`
note: required by a bound in `volo_thrift::Message::{opaque#0}`
--> /home/sen/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/pilota-0.9.0/src/thrift/mod.rs:46:22
|
46 | ) -> impl Future<Output = Result<Self, DecodeError>> + Send;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Message::{opaque#0}`
error[E0277]: `dyn Future<Output = Result<Item, pilota::thrift::DecodeError>> + Send` cannot be sent between threads safely
--> /home/sen/code//volo-play/volo-example/target/debug/build/volo-gen-2f3f6b511768088d/out/volo_gen.rs:166:22
|
166 | ) -> ::std::pin::Pin<
| ______________________^
167 | | ::std::boxed::Box<
168 | | dyn ::std::future::Future<
169 | | Output = ::std::result::Result<Self, ::pilota::thrift::DecodeError>,
... |
172 | | >,
173 | | > {
| |_________________^ `dyn Future<Output = Result<Item, pilota::thrift::DecodeError>> + Send` cannot be sent between threads safely
|
= help: the trait `Send` is not implemented for `dyn Future<Output = Result<Item, pilota::thrift::DecodeError>> + Send`
= note: required for `std::ptr::Unique<dyn Future<Output = Result<Item, pilota::thrift::DecodeError>> + Send>` to implement `Send`
note: required because it appears within the type `Box<dyn Future<Output = Result<Item, DecodeError>> + Send>`
--> /home/sen/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/boxed.rs:195:12
|
195 | pub struct Box<
| ^^^
note: required because it appears within the type `Pin<Box<dyn Future<Output = Result<Item, DecodeError>> + Send>>`
--> /home/sen/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/pin.rs:410:12
rust 版本:
(base) [sen@OP005 volo-example]$ rustup --version
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.75.0-nightly (fee5518cd 2023-11-05)`
The text was updated successfully, but these errors were encountered:
Bug Report
Version
Platform
Crates
Description
按新手教程中的步骤,编译失败,输出如下
rust 版本:
The text was updated successfully, but these errors were encountered: