-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking issue for RFC 2289, "Associated type bounds" #52662
Copy link
Copy link
Closed
Labels
A-trait-systemArea: Trait systemArea: Trait systemB-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.B-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-associated_type_bounds`#![feature(associated_type_bounds)]``#![feature(associated_type_bounds)]`S-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.S-types-trackedStatus: Being actively tracked by the types teamStatus: Being actively tracked by the types teamT-langRelevant to the language teamRelevant to the language teamT-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-trait-systemArea: Trait systemArea: Trait systemB-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.B-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-associated_type_bounds`#![feature(associated_type_bounds)]``#![feature(associated_type_bounds)]`S-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.S-types-trackedStatus: Being actively tracked by the types teamStatus: Being actively tracked by the types teamT-langRelevant to the language teamRelevant to the language teamT-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.
This is a tracking issue for the RFC "Associated type bounds of form
MyTrait<AssociatedType: Bounds>" (rust-lang/rfcs#2289). The feature gate is#![feature(associated_type_bounds)].Steps:
Unresolved questions:
Does allowing this for
dyntrait objects introduce any unforeseen issues? This can be resolved during stabilization.associated_type_boundnested indyntypes #120719Resolve exact desugaring in the context of putting bounds on an associated type of a trait. See discussion in the RFC.
Consider nested lifetimes, https://gist.github.com/Centril/b0e62d31d4ae1849535c3e506e1fad64.
TODO:
Extend with tests in Implementation of RFC 2289 (associated_type_bounds) #57428 (comment).
associated_type_bounds: errors with ambiguous associated type #61752