Skip to content

typeof() in the type language #3228

Closed
Closed
@bblum

Description

@bblum

I'm not sure if this would be useful in every-day code, but I just wrote some code where it would've been nice to say:

let foo: typeof(earlier_thing) = unsafe::transmute(...);

instead of

let foo: complicated::typename::that_might_change_later = unsafe::transmute(...);

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-grammarArea: The grammar of Rust

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions