Pre-pre-RFC: `NoDrop` marker trait

While I see some appeal in your proposal, as @CAD97 noted, it brings a lot of issues. However, it reminds me a bit of my own question and the related idea of a Close trait. Perhaps, it might be worth extending this idea with a hook that could be used during panicking as you suggested, with the default implementation simply dropping the thing.

1 Like