derivable_impls wants derive(Default) on enum #7753
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
Lint name:
derivable_impls
I tried this code:
Clippy says:
This is incorrect because rustc cannot derive
Default
on enums (untilfeature(derive_enum_default)
is stabilized.)Meta
Rust version (
rustc -Vv
):The playground repro uses
2021-10-02 f03eb6bef8ced8a24385
cc @HKalbasi
@rustbot label +I-suggestion-causes-error
The text was updated successfully, but these errors were encountered: