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
| ----------------------- expected `std::pin::Pin<std::boxed::Box<(dyn std::future::Future<Output = i32> + std::marker::Send + 'static)>>` because of return type
23
-
LL | Box::new(x)
24
-
| ^^^^^^^^^^^ expected struct `std::pin::Pin`, found struct `std::boxed::Box`
= help: type parameters must be constrained to match other types
44
-
= note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
45
-
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
46
-
47
-
error[E0277]: `dyn std::future::Future<Output = i32> + std::marker::Send` cannot be unpinned
0 commit comments