Skip to content

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

@harshRn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions