mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
21ccec0cc8
Previously, `break` inside `gen` blocks and functions were incorrectly identified to be enclosed by a closure. This PR fixes it by displaying an appropriate error message for async blocks, async closures, async functions, gen blocks, gen closures, gen functions, async gen blocks, async gen closures and async gen functions. Note: gen closure and async gen closure are not supported by the compiler yet but I have added an error message here assuming that they might be implemented in the future. Also, fixes grammar in a few places by replacing `inside of a $coroutine` with `inside a $coroutine`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |