Skip to content

Formatted print - fmt::Display example issue #1824

Open
@Calm0016

Description

@Calm0016

In https://doc.rust-lang.org/rust-by-example/hello/print.html

at line 47 there is an example for

// This will not compile because `Structure` does not implement
// fmt::Display.
//println!("This struct `{}` won't print...", Structure(3));
// TODO ^ Try uncommenting this line

if you uncomment the 48th, 49th, or both lines it still throws an error message.

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