Closed
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