regression: #[forbid(unreachable_code)] incompatible with the Try ('?') operator #76053
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
Both on debug and release it generates an error saying that
#[allow(unreachable_code)]
was overridden by the#[forbid(...)]
attribute, while pointing at the "try" expression.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: