We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This causes bad to be output
bad
fn main() { let x = (2i, &[1i, 2i]); match x { (0, [_, _]) => {}, (1, _) => {}, (2, [_, _]) => println!("good"), (2, _) => println!("bad"), _ => {}, } }
Deleting either (0, [_, _]) => {}, or (1, _) => {}, causes it to output good.
(0, [_, _]) => {},
(1, _) => {},
good