Skip to content

"let () =" should be irrefutable #3104

Closed
@bblum

Description

@bblum
fn main() {
    let () = ();
}

fails with

unit.rs:2:8: 2:10 error: refutable pattern in local binding
unit.rs:2     let () = ();
                  ^~

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions