False positive: expl_impl_clone_on_copy
with unsafe
fields.
#14558
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
unsafe
fields (still unstable, see rust-lang/rust#132922) cannot (currently) deriveClone
.(Feel free to close if this should wait until rust-lang/rust#132922 is closer to being stabilized).
Lint Name
expl_impl_clone_on_copy
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: No warnings, since attempting to derive
Clone
produces a compiler error.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: