try-blocks and label-break-value do not work together. #72483
Labels
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
F-label_break_value
`#![feature(label_break_value)]`
F-try_blocks
`#![feature(try_blocks)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I've been playing around with
label-break-value
today, and it comes in super handy inasync
blocks. However, it seems to run into issues when combined with thetry_blocks
feature.I tried this code:
I expected to see this happen: the code should compile just fine.
Instead, this happened:
This is a continuation of the discussion here. As @ciphergoth pointed out, this code (following the syntactic sugar from the label-break-value RFC) compiles:
Meta
rustc --version --verbose
:This issue has been assigned to @samrat via this comment.
The text was updated successfully, but these errors were encountered: