Skip to content

Commit d3a5f9f

Browse files
Aaron1011Havvy
authored andcommitted
Attributes are now allowed on if and if let
This became possible with rust-lang/rust#69201
1 parent 60c9231 commit d3a5f9f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/expressions.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,10 @@ a few specific cases:
272272
https://github.com/rust-lang/rust/issues/15701
273273
-->
274274
* The tail expression of [block expressions].
275+
* [`if`][_IfExpression_] and [`if let`][_IfLetExpression_] expressions.
275276
<!-- Keep list in sync with block-expr.md -->
276277

277278
They are never allowed before:
278-
279-
* [`if`][_IfExpression_] and [`if let`][_IfLetExpression_] expressions.
280279
* [Range][_RangeExpression_] expressions.
281280
* Binary operator expressions ([_ArithmeticOrLogicalExpression_],
282281
[_ComparisonExpression_], [_LazyBooleanExpression_], [_TypeCastExpression_],

0 commit comments

Comments
 (0)