Skip to content

Default type parameters are not in the language reference #24

Open
@steveklabnik

Description

@steveklabnik

Migrated from rust-lang/rust#38011


Default type parameters (e g struct Foo<A = u32>(A)) is a language feature, but they are not mentioned in the language reference.

It would be nice if such a reference also mentioned the tricky semantics around how it interacts with inference, as mentioned here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-typesArea: TypesNew ContentMissing features or aspects of language not currently documented.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions