Member constraints
#61775 introduced "member constraints" as part of stabilizing async functions. These extend region inference to accommodate impl Trait return types that contain multiple unrelated lifetimes (e.g., impl Trait<'a, 'b> where neither 'a: 'b nor 'b: 'a). We decided to introduce a feature gate for other cases until we have time to gain more experience.
Learn more
The working of these constraints is described in the rustc-guide -- as of this writing, however, the PR has not yet landed.
Current status
Related issues
Member constraints
#61775 introduced "member constraints" as part of stabilizing async functions. These extend region inference to accommodate
impl Traitreturn types that contain multiple unrelated lifetimes (e.g.,impl Trait<'a, 'b>where neither'a: 'bnor'b: 'a). We decided to introduce a feature gate for other cases until we have time to gain more experience.Learn more
The working of these constraints is described in the rustc-guide -- as of this writing, however, the PR has not yet landed.
Current status
Related issues
impl Trait(RFC 1522, RFC 1951, RFC 2071) #34511)impl_trait_in_bindingsand pick-constraint region bounds #61773)