Unexpected dead_code warning when returning Result type from main #123418
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
L-dead_code
Lint: dead_code
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expect this to behave like so:
What I get is:
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: