Misleading unreachable code warning from return in try blocks #54165
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
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.
https://play.rust-lang.org/?gist=363157c898e0d067260e711db131b256&version=nightly&edition=2018
The desugar should probably just suppress this warning for the code it generates.
The text was updated successfully, but these errors were encountered: