Skip to content

The deduped versions of the *View types break variance: #501

@sosthene-nitrokey

Description

@sosthene-nitrokey

The following compiles with v0.8.0 and #425, but not with latest main:

fn test_variance<'a: 'b, 'b>(x: Vec<&'a (), 42>) -> Vec<&'b (), 42> {
    x
}

@Dirbaio

I think this is caused the intermediary Generic Associated Type, but I could not find where this is documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions