Skip to content

Associated types are not resolved in the IDE layer #5003

@lnicola

Description

@lnicola

Like the T::S here:

trait D {}

trait Foo {
    type S;
}

trait Bar<T>
where
    T: Foo,
    T::S: D,
{
}

fn main() {}

CC #4991

Another one:

trait Foo {
    type Bar;

    fn foo(_: Self::Bar);
}

struct S;

impl Foo for S {
    type Bar = i32;

    fn foo(_: Self::Bar) {
        todo!()
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-nameresname, path and module resolutionA-tytype system / type inference / traits / method resolutionS-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions