Dealing with unconstrained type parameters in impl blocks

I should probably have linked to Looking for a deeper understanding of PhantomData. And yeah, it can be subtle and confusing, but I think PhantomData<fn(T)> is the correct kind of PhantomData to use in this situation, if that's the route you want to take.

2 Likes