missing-const-for-fn
when const fn
would require unstable features
#8864
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
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
L-nursery
Lint: Currently in the nursery group
Summary
missing-const-for-fn
warns 'this could be aconst fn
' on code that cannot be due to the required feature being unstable.Lint Name
missing-const-for-fn
Reproducer
I tried this code:
I saw this happen:
When adding the suggested
const
header:Version
Additional Labels
@rustbot label +I-suggestion-causes-error
The text was updated successfully, but these errors were encountered: