Skip to content

"Internal error looking up definition" using a type alias with a where clause #20222

Closed
@pythonesque

Description

@pythonesque

I guess this just hasn't been implemented yet?

#![feature(associated_types)]

trait Foo {}

pub type Bar<T> where T: Foo = T;

fn main() {}
src/hkt.rs:5:26: 5:29 error: internal error looking up a definition
src/hkt.rs:5 pub type Bar<T> where T: Foo = T;
                                      ^~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions