-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Type:of does not support types without a size #151018
Copy link
Copy link
Closed
Labels
A-type-systemArea: Type systemArea: Type systemC-bugCategory: This is a bug.Category: This is a bug.F-type_info#![feature(type_info)]#![feature(type_info)]T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-type-systemArea: Type systemArea: Type systemC-bugCategory: This is a bug.Category: This is a bug.F-type_info#![feature(type_info)]#![feature(type_info)]T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected this to compile successfully.
Instead, I received an error that
Type::ofdoesn't support unsized types:I believe this occurs because
Type::ofdoesn't have an?Sizedbound. As a temporary workaround, I usedTypeId::offirst, and then accessed the info from there:Meta
This is on the
mainbranch (commit 1377169). This uses thetype_infofeature (#146922), and is related to #146923.