Skip to content

Incorrect lifetime error even with explicit re-borrowing #141699

Closed
@Diggsey

Description

@Diggsey

See this playground link: https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=4e5e2a45ede09db3cb4d6959adc7b3c6

I expect this to compile, but it fails with a borrow check error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-discussionCategory: Discussion or questions that doesn't represent real issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions