Skip to content

Tracking issue for member constraints in region inference #61997

Description

@nikomatsakis

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.A-inferenceArea: Type inferenceA-lifetimesArea: Lifetimes / regionsA-member-constraints`#[feature(member_constraints)]`B-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-langRelevant to the language team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions