Skip to content

Fulfill additional higher-kinded "outlives" predicates #27113

@apasel422

Description

@apasel422

Types fail to fulfill higher-kinded "outlives" predicates when the higher-kinded region is present on the left-hand side of the predicate. For example:

fn foo<T>() where for<'a> &'a T: 'a {}

fn main() {
    foo::<i32>();
    //~^ ERROR the requirement `for<'a> &'a i32: 'a` is not satisfied [E0280]
}

CC @nikomatsakis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-trait-systemArea: Trait systemA-type-systemArea: Type systemC-bugCategory: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions