Skip to content

docs: clarify PhantomData vs "phantom types" statement #27523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alevy opened this issue Aug 4, 2015 · 0 comments
Closed

docs: clarify PhantomData vs "phantom types" statement #27523

alevy opened this issue Aug 4, 2015 · 0 comments

Comments

@alevy
Copy link
Contributor

alevy commented Aug 4, 2015

In the documentation for PhantomData, it states that: "Though they both have scary names, PhantomData and "phantom types" are unrelated."

This seems to not be an accurate description of the relationship between the PhantomData marker and phantom types, the concept. They are related, just not the same thing.

/cc @steveklabnik

steveklabnik added a commit to steveklabnik/rust that referenced this issue Aug 5, 2015
This wording was too strong.

Fixes rust-lang#27523
steveklabnik added a commit to steveklabnik/rust that referenced this issue Aug 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants