Ensure structs can be used on pattern matching