That's because that's a binding pattern, that is a pattern that matches any value and gives the given "name" to that value. If you want to match an enum value you need to use the pattern Test::Item2
.
1 Like