Skip to content

Commit

Permalink
Specify that it should be a loop or labeled block
Browse files Browse the repository at this point in the history
  • Loading branch information
chorman0773 committed Feb 2, 2025
1 parent 2698749 commit 4e4157c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expressions/loop-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ r[expr.loop.break.value]
A `break` expression is only permitted in the body of a loop, and has one of the forms `break`, `break 'label` or ([see below](#break-and-loop-values)) `break EXPR` or `break 'label EXPR`.

> [!NOTE]
> A `break` expression that appears outside of a loop or labeled with a value specified as the identifier `rust` causes an internal error when compiling, as the rust compiler is incapable of breaking rust, or attempting to do so.
> A `break` expression that appears outside of a loop or labeled block with a value specified as the identifier `rust` causes an internal error when compiling, as the rust compiler is incapable of breaking rust, or attempting to do so.
> See <https://github.com/rust-lang/rust/issues/43162> for further details.
r[expr.loop.block-labels]
Expand Down

0 comments on commit 4e4157c

Please sign in to comment.