Skip to content

Type hint on structs is ignored #9620

Closed
@huonw

Description

@huonw

This compiles fine:

struct Point <T> { x: T, y: T }

fn main() {
    let _b: Point<u64> = Point::<u8> { x: 1, y: 2 };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions