False positive for clippy::question_mark #13417
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
clippy claims that
let ... else
should be replaced by?
in the following code. However, actually replacing it with?
results in a compile error.Lint Name
question_mark
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No warnings should be emitted, or a correct correction should be suggested.
Version
rustc 1.81.0 (eeb90cda1 2024-09-04)
binary: rustc
commit-hash: eeb90cda1969383f56a2637cbd3037bdf598841c
commit-date: 2024-09-04
host: x86_64-unknown-linux-gnu
release: 1.81.0
LLVM version: 18.1.7
Additional Labels
No response
The text was updated successfully, but these errors were encountered: