Skip to content

std::num::Wrapping does not implement std::fmt::Display #33006

Closed
@Thiez

Description

@Thiez

I would expect this to work, and print '1': println!("{}", std::num::Wrapping(1u8));. Instead the compiler informs me:

error: the trait core::fmt::Display is not implemented for the type core::num::Wrapping<u8>

Perhaps Wrapping should implement Display?

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