Skip to content

Chapter 18.2: irrefutable patterns are now allowed in let and while-let statements #2039

Closed
rust-lang/rust
#65941
@UnHumbleBen

Description

@UnHumbleBen

Because of this pull request to the Rust lang,
https://rust-lang.github.io/rfcs/2086-allow-if-let-irrefutables.html
the chapter's claim that irrefutable patterns are not allowed in while let and if let statements is no longer true.

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