Allow unused_must_use on result with never type #65861
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
F-never_type
`#![feature(never_type)]`
T-lang
Relevant to the language team
This code yields a warning:
However since a
Result<T, !>
can never have theErr
branch, having to handle the resulting error seems kind of pointless. Would it be possible to disable theunused_must_use
lint for this particular case?The text was updated successfully, but these errors were encountered: