Closed
Description
openedon Mar 20, 2014
The following code prints 3
instead of 2
:
println!("{}", match 1 {
1 if false => 1,
1..2 => 2,
_ => 3
});
Removing the first arm (1 if false => ...
) makes it print 2
as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels