Skip to content

Commit

Permalink
Merge pull request rust-lang#783 from Aaron1011/patch-1
Browse files Browse the repository at this point in the history
Attributes are now allowed on `if` and `if let`
  • Loading branch information
ehuss authored Apr 10, 2020
2 parents f8dce93 + 36b557c commit 25acdfa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,6 @@ a few specific cases:
<!-- 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 25acdfa

Please sign in to comment.