Skip to content

Bogus associated type HKT syntax somehow compiles with no errors #23543

Closed
@theemathas

Description

@theemathas

Code:

pub trait A : Copy {}

struct Foo;

pub trait D {
    fn f<T>(self)
        where T<Bogus = Foo>: A;
}

fn main() {}

playpen

This isn't supposed to compile at all.

Probably a variant of #23544

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions