Skip to content

Equals sign accepted in type parameter declaration #20759

@bluss

Description

@bluss

The following should probably be a syntax error (I don't think it has a defined meaning), the T=int thing should be rejected.

struct Foo<T>(T);
impl<T=int> Foo<T> { }

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