File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ assert_eq!(y, "Bigger");
44
44
45
45
> ** <sup >Syntax</sup >** \
46
46
> _ IfLetExpression_ :\
47
- >   ;  ; ` if ` ` let ` [ _ Pattern_ ] ` = ` [ _ Expression_ ] <sub >_ except struct expression_ </sub >
47
+ >   ;  ; ` if ` ` let ` [ _ Pattern_ ] ` = ` [ _ Expression_ ] <sub >_ except struct or lazy boolean operator expression_ </sub >
48
48
> [ _ BlockExpression_ ] \
49
49
>   ;  ; (` else ` (
50
50
> [ _ BlockExpression_ ]
@@ -111,6 +111,12 @@ match EXPR {
111
111
}
112
112
```
113
113
114
+ The expression cannot be a [ lazy boolean operator expression] [ _LazyBooleanOperatorExpression_ ] .
115
+ Use of a lazy boolean operator is ambiguous with a planned feature change
116
+ of the language (the implementation of if-let chains - see [ eRFC 2947] [ _eRFCIfLetChain_ ] ).
117
+
114
118
[ _Expression_ ] : expressions.html
115
119
[ _BlockExpression_ ] : expressions/block-expr.html
116
120
[ _Pattern_ ] : patterns.html
121
+ [ _LazyBooleanOperatorExpression_ ] : expressions/operator-expr.html#lazy-boolean-operators
122
+ [ _eRFCIfLetChain_ ] : https://github.com/rust-lang/rfcs/blob/master/text/2497-if-let-chains.md#rollout-plan-and-transitioning-to-rust-2018
You can’t perform that action at this time.
0 commit comments