generated from rust-lang/project-group-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
A-param-typesConst parameter typesConst parameter typesA-unificationUnifying constants in the type systemUnifying constants in the type systemC-design-docsCategory: This is part of our design documentationCategory: This is part of our design documentationK-behaviorDocument Kind: regarding user visible behaviorDocument Kind: regarding user visible behaviorP-optionalPriority: not strictly requiredPriority: not strictly requiredS-blocked
Description
What is this
This is a design document for const generics. Any discussions about its content should be on zulip. The conclusions of these discussions should then be edited back into this issue. Please do not post any comments directly in this issue.
Content
Whether we want to be able to unify different partial impls to consider them exhaustive.
trait ForBool<const B: bool> {}
impl ForBool<true> for u8 {}
impl ForBool<false> for u8 {}
// Does `for<const B: bool> u8: ForBool<B>` hold?
Metadata
Metadata
Assignees
Labels
A-param-typesConst parameter typesConst parameter typesA-unificationUnifying constants in the type systemUnifying constants in the type systemC-design-docsCategory: This is part of our design documentationCategory: This is part of our design documentationK-behaviorDocument Kind: regarding user visible behaviorDocument Kind: regarding user visible behaviorP-optionalPriority: not strictly requiredPriority: not strictly requiredS-blocked