Skip to content

assert!(false, "{}") compiles and prints {} #51338

Closed
@rocallahan

Description

@rocallahan
assert!(false, "{}")

prints {} but

assert!(false, "{}", 77);

prints 77. Given that the second parameter is interpreted as a format string, shouldn't it fail to compile if you don't provide enough parameters?

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