-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-langRelevant to the language teamRelevant to the language team
Description
fn main() {
let foo = "1 + (2 + 3)";
for ch in foo.chars() {
match ch {
e @ '(' | e @ '[' | e @ '{' => match e {
'(' => {}
'[' => {}
'{' => {}
// As we all know, there is missing a _
// However I think the compiler should be smarter
// Because there is a binding
},
_ => {}
}
}
}
As we all know, there is missing a _
However I think the compiler should be smarter
Because there is a binding here
There may be code that will never be executed
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-langRelevant to the language teamRelevant to the language team