-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-DSTsArea: Dynamically-sized types (DSTs)Area: Dynamically-sized types (DSTs)P-mediumMedium priorityMedium priorityT-langRelevant to the language teamRelevant to the language team
Description
The following construct compiles:
struct Foo {
foo: [[u8]],
}
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.
Metadata
Metadata
Assignees
Labels
A-DSTsArea: Dynamically-sized types (DSTs)Area: Dynamically-sized types (DSTs)P-mediumMedium priorityMedium priorityT-langRelevant to the language teamRelevant to the language team