Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up[[T]] is allowed in structs #25692
Comments
This comment has been minimized.
This comment has been minimized.
|
Because of |
This comment has been minimized.
This comment has been minimized.
|
No, pornel is right, |
This comment has been minimized.
This comment has been minimized.
|
That makes sense now. The |
Aatch
added
A-dst
I-wrong
labels
May 22, 2015
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
See also: #21748 The generic issue is that |
arielb1
referenced this issue
May 22, 2015
Closed
[WIP] Check more things for well-formedness #25701
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Nominating because rustc accepts bogus syntax. |
brson
added
the
I-nominated
label
May 27, 2015
nikomatsakis
added
the
T-lang
label
Jun 2, 2015
This comment has been minimized.
This comment has been minimized.
|
triage: P-medium Assigning medium priority since it's hard to construct useful programs that rely on this, as far as I know. |
rust-highfive
added
P-medium
and removed
I-nominated
labels
Jun 3, 2015
nikomatsakis
referenced this issue
Jul 17, 2015
Merged
[RFC] Clarify (and improve) rules for projections and well-formedness #1214
nikomatsakis
referenced this issue
Aug 7, 2015
Open
Projections, lifetimes, and WF tracking issue (RFC 1214) #27579
This comment has been minimized.
This comment has been minimized.
|
This seems to have been fixed on stable: http://is.gd/P0QUd6 |
This comment has been minimized.
This comment has been minimized.
|
Yay! |
kornelski commentedMay 21, 2015
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.