Wrong suggestion of const fn
if type implements Drop
#4449
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
L-suggestion
Lint: Improving, adding or fixing lint suggestions
Hello together,
The following code snippet (in
src/lib.rs
):leads to this suggestion:
but the suggested fix (i.e. add the
const
qualifier) is wrong. After the fix the following error occurs:Meta
The text was updated successfully, but these errors were encountered: