mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
2c639cc7fe
Reject implementing const Drop for types that are not const `Destruct` already fixes rust-lang/rust#155618 While there is no soundness or otherwise issue currently, this PR ensures that people get what they expect. It seems wrong to allow implementing `const Drop`, but then the type still can't be dropped at compile-time. r? @fee1-dead