Skip to content

associated types with generic bounds not in where clause won't compile #25

Closed
@bsh98

Description

@bsh98

For example, the following trait compiles

#[trait_variant::make(TestTrait: Send)]
pub trait LocalTestTrait{
    type B<T>: FromIterator<T> where T: Display;
    // --snip--
}

but this one does not compile

#[trait_variant::make(TestTrait: Send)]
pub trait LocalTestTrait{
    type B<T: Display>: FromIterator<T>;
    // --snip--
}

even though they are equivalent.

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