That's where I think things would go too. There are a few other silly errors than can pop up right now, like "you need to implement Clone for a mutable reference", and having the explicit negative impl there seems both good for improving the error message and as a place to write about why that's definitely not ok in the docs. Previous conversation:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| A type that is sometimes Drop and sometimes Copy: is this even theoretically possible? | 1 | 869 | March 11, 2021 | |
| Unsafe Impl Copy and Freeze | 11 | 698 | October 21, 2024 | |
| Language inconsistency when implementing a trait | 24 | 2836 | March 3, 2020 | |
|
Edition idea: Should any type that has drop glue be considered to impl Drop?
|
19 | 2813 | March 11, 2021 | |
| Fixing the `Drop` trait bound | 13 | 4332 | April 16, 2019 |