Skip to content

Commit

Permalink
Attributes are now allowed on if and if let
Browse files Browse the repository at this point in the history
This became possible with rust-lang/rust#69201
  • Loading branch information
Aaron1011 authored and Havvy committed Aug 25, 2020
1 parent 60c9231 commit d3a5f9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,10 @@ a few specific cases:
https://github.com/rust-lang/rust/issues/15701
-->
* The tail expression of [block expressions].
* [`if`][_IfExpression_] and [`if let`][_IfLetExpression_] expressions.
<!-- Keep list in sync with block-expr.md -->

They are never allowed before:

* [`if`][_IfExpression_] and [`if let`][_IfLetExpression_] expressions.
* [Range][_RangeExpression_] expressions.
* Binary operator expressions ([_ArithmeticOrLogicalExpression_],
[_ComparisonExpression_], [_LazyBooleanExpression_], [_TypeCastExpression_],
Expand Down

0 comments on commit d3a5f9f

Please sign in to comment.