logoalt Hacker News

dwattttt • yesterday at 11:01 PM • 1 reply • view on HN

Even if the bounds are the same on the struct and the impl, it's still true that placing bounds on the Drop impl means it's not implemented for all T (just all T that also satisfy Q).

You also don't have to place those bounds on the Drop impl just because they're on Q, that's not an error.


Replies

Xirdus • today at 1:25 AM

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.

➕ show 1 reply