Skip to content

let else doesn't eagerly drop with _ pattern #94351

Closed
@lcnr

Description

@lcnr

The handling and lifetimes of temporaries should be exactly the same with let and with let else; any understanding or intuitions that people have about let should apply to let else.

I think we have a bug then. 😢 (see playground)

Originally posted by @camsteffen in #93628 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-let_elseIssues related to let-else statements (RFC 3137)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions