rust-lang / rust-lang/mdBook

Playground timeout too short for some examples

Open
#2,963 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug
Dominant language
Rust
Stars
22.2k
Forks
1.9k
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Listing 17-19 in the Rust Book chapter on more futures and compare the web version with a local cargo run. Verify the reported missing Future reference and confirm that the example runs successfully in the web playground and locally.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.