Skip to content

grouped pattern is never identified #4298

@lucasly-ba

Description

@lucasly-ba

code

pub fn a() {

   let int_reference = &3;
   match int_reference {
       &(0..=5) => (), /// will give us a range pattern
       _ => (),
   };

   let x = 0;
   match x {
        (3) => {}, /// will give us a literal pattern
        ((3)) => {}, /// likewise
        _ => {},
    };

}

Metadata

Metadata

Assignees

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