Skip to content

Missing import line in 17.3 use std::future::Future; in Listing 17-19 #2963

@humblemat810

Description

@humblemat810

Problem

Listing 17-19: Using Pin directly with the pin! macro to avoid unnecessary heap allocations

web version does not run and time out. local check find the reference to Future is missing. This example suppose to run but miss the line
use std::future::Future; in imports

https://doc.rust-lang.org/book/ch17-03-more-futures.html

Image

Steps

click run or copy the code to cargo run.

Possible Solution(s)

add back the line

Notes

thanks for tutorial and we can keep it up

Version

the version currently online at the time of 20251124 UTC + 10 9:21 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions