Skip to content

Logging of newtyped uints is broken #3506

Closed
@nikomatsakis

Description

@nikomatsakis

Running this program:

enum Foo = uint;

fn main() {
    let x = Foo(1);
    let y = 1;
    io::println(fmt!("%?, %?", x, y));
}

yields the output:

, 1

Not so good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions