You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PhantomData is a ZST, but in all other aspects it behaves as if it contains a value of type T. For example wrt to variance. It also counts as a use of a generic parameter and thus allows disabling the error that generic parameters need to be used.
The text was updated successfully, but these errors were encountered:
I think this issue could be tagged good-first-pr since a naive implementation (which does not actually check whether the annotated type is really a ZST) is pretty straightforward.
Hints for new contributors: Check this pull request: #1100.
This is the full definition:
PhantomData
is a ZST, but in all other aspects it behaves as if it contains a value of typeT
. For example wrt to variance. It also counts as a use of a generic parameter and thus allows disabling the error that generic parameters need to be used.The text was updated successfully, but these errors were encountered: