mirror of
https://github.com/rust-lang/book.git
synced 2026-05-16 20:51:10 -04:00
Removing code style around futures; not sure what this refers to
This commit is contained in:
@@ -112,8 +112,8 @@ Unfortunately, this still does not compile. In fact, we have the same basic
|
||||
error we did before, but we get one for both the second and third `Box::new`
|
||||
calls, and we also get new errors referring to the `Unpin` trait. We will come
|
||||
back to the `Unpin` errors in a moment. First, let’s fix the type errors on the
|
||||
`Box::new` calls, by explicitly providing the type of `futures` as a trait
|
||||
object (Listing 17-17).
|
||||
`Box::new` calls, by explicitly annotating the type of the futures as a trait
|
||||
object:
|
||||
|
||||
<Listing number="17-17" caption="Fixing the rest of the type mismatch errors by using an explicit type declaration" file-name="src/main.rs">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user