logoalt Hacker News

Xirdus • today at 1:25 AM • 1 reply • view on HN

The Drop isn't implemented for T at all. It's only implemented for Q<T>. And it's implemented for all Q<T>, in the sense that for every value of type Q<T>, this Drop impl applies.

And I'm still not any closer to understanding what the bug is about.


Replies

dwattttt • today at 6:18 AM

Sorry, yes. I mean that Drop isn't implemented for all Q<T>, just all Q<T> where T meet the bounds of legally constructing Q. I note the difference because you can write a Drop impl with no bounds on T, and I believe it would not be able to trigger the bug.