checked_conversions suggestions in const contexts are not const #8898
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
checked_conversions
(default allow; pedantic) suggestions in const contexts are not const.Lint Name
checked_conversions
Reproducer
I tried this code:
I saw this happen:
Applied the suggestion an got:
I expected to see this happen: Suggestion can be applied or lint does not trigger.
Version
Additional Labels
@rusbot label +I-suggestion-causes-error
The text was updated successfully, but these errors were encountered: