Skip to content

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

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)

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

    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