Skip to content

Qualified paths don't consider the type arguments supplied to the trait #18865

Closed
@nikomatsakis

Description

@nikomatsakis

Example:

#![feature(associated_types)]

trait Foo<T> {
    type Bar;
    fn get_bar() -> <Self as Foo<int>>::Bar; // SHOULD be an error but is not
}

fn main() { }

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