-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
[[T]] is allowed in structs #25692
Comments
Because of |
No, pornel is right, |
That makes sense now. The |
The same goes for These aren't types that can ever be constructed, and the compiler doesn't know how to handle them, so they should be forbidden in all places. |
See also: #21748 The generic issue is that |
|
Nominating because rustc accepts bogus syntax. |
triage: P-medium Assigning medium priority since it's hard to construct useful programs that rely on this, as far as I know. |
This seems to have been fixed on stable: http://is.gd/P0QUd6 |
Yay! |
The following construct compiles:
Even though
let foo: [[u8]]
doesn't. From my very limited understanding this type doesn't make sense, so it'd be nice if the compiler rejected it at the point of definition.The text was updated successfully, but these errors were encountered: