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.
1 parent 4821ccf commit 98c1afbCopy full SHA for 98c1afb
src/Language/Rust/Parser/Internal.y
@@ -1060,8 +1060,10 @@ else_expr :: { Maybe (Expr Span) }
1060
arms :: { [Arm Span] }
1061
: ntArm { [$1] }
1062
| ntArm arms { $1 : $2 }
1063
- | many(outer_attribute) sep_by1(pat,'|') arm_guard '=>' expr_arms
+ | many(outer_attribute) sep_by1(pat,'|') arm_guard '=>' expr_arms
1064
{ let (e,as) = $> in (Arm $1 (toNonEmpty $2) $3 e ($1 # $2 # e) : as) }
1065
+ | many(outer_attribute) '|' sep_by1(pat,'|') arm_guard '=>' expr_arms
1066
+ { let (e,as) = $> in (Arm $1 (toNonEmpty $3) $4 e ($1 # $2 # e) : as) }
1067
1068
arm_guard :: { Maybe (Expr Span) }
1069
: {- empty -} { Nothing }
0 commit comments