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
std::array's documentation mistakenly says it derefs to [T] #29993
Comments
It's compiler built in either way, not related to the Deref or CoerceUnsized traits. |
@nrc how would you describe the current situation |
There is definitely no dereferencing going on, so "coerce" is more accurate. This uses the |
and it's the same unsizing happening in both method resolution as with coercion? |
@bluss yes |
The doc page for
std::array
says this:However, though this is true of
Vec<T>
, arrays in fact coerce viaCoerceUnsized
, not via deref coercion.The text was updated successfully, but these errors were encountered: