question-mark usage suggested in const fn #9175
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
Clippy suggests to use the
?
operator in aconst fn
where that operator is not allowed.I hope I did this correctly, it is my first issue I fill in. Thanks for the great work on Clippy!
Lint Name
question_mark
Reproducer
I tried this code:
I saw this happen:
I expected to not see this to happen as the
?
operator is not allowed in aconst fn
. Trying to do so results in:rust-lang/rust#74935
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: