new_without_default
doesn't trigger on const fn
#10877
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
Triggers on
pub fn new() -> Self
but notpub const fn new() -> Self
Lint Name
new_without_default
Reproducer
I tried this code:
I expected to see this happen: lint triggers
Instead, this happened: lint doesn't trigger
Version
The text was updated successfully, but these errors were encountered: