-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Possibly incorrect syntax Enum::<Type, Params>::Variant allowed since 1.33 #69356
Copy link
Copy link
Open
Labels
A-type-systemArea: Type systemArea: Type systemC-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler 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.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Metadata
Metadata
Assignees
Labels
A-type-systemArea: Type systemArea: Type systemC-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler 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.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Type
Fields
Give feedbackNo fields configured for issues without a type.
A coworker recently identified the following case:
This used to fail because of the lack of implicit bound
T: 'a:After fixing that, it complains about the type params:
Starting in 1.33, all but the
Structpath are accepted:The correct code for this would of course be:
My questions:
Depending on the answer to those questions, the solution to this ticket could be:
let foo = Foo::Struct::<String> {};casecc @Centril