Skip to content

corofied b-async-await in chapter 7 does not compile with Rust 2024 edition. #45

Description

@harshRn

Just a note for readers compiling in 2026 with 2024 editions, the corofied main.rs complains about lifetimes for all 5 leaf futures HttpGetFuture created like so:

Image

Ofc, 3 obvious solutions come to mind:

  1. change edition to 2021
  2. Pre-define the paths as constants
  3. Change Http::get() to accept String

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    second editionIssues that should be considered for an eventual second edition of the book

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions