-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Non-'static Lifetimes in Const Generics #74052
Copy link
Copy link
Open
Labels
A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)A-lifetimesArea: Lifetimes / regionsArea: Lifetimes / regionsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)A-lifetimesArea: Lifetimes / regionsArea: Lifetimes / regionsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
We currently don't correctly handle non-
'staticlifetimes in const generics. Until #74051 is merged we ICE when a non-'staticlifetime is hit, as seen in #60814.Many uses for const generics does not hit this limitation, but the following case has been brought up:
as quoted from @lcnr on Zulip
@varkor @eddyb @nikomatsakis