mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
49ca3d9796
Allow labeled loops as value expressions for `break` Fixes #86948. This is currently allowed: ```rust return 'label: loop { break 'label 42; }; break ('label: loop { break 'label 42; }); break 1 + 'label: loop { break 'label 42; }; break 'outer 'inner: loop { break 'inner 42; }; ``` But not this: ```rust break 'label: loop { break 'label 42; }; ``` I have fixed this, so that the above now parses as an unlabeled break with a labeled loop as its value expression. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |