Skip to content

Formatting of chars with fixed width was broken? #26625

Closed
@askobara

Description

@askobara

Current code gives different results on stable and nightly branches

fn main() {
    println!("{: >5} | {: >5}", 112, 0);
    println!("{: >5} | {: >5}", '.', 0);
}

Here is the stable:

  112 |     0
    . |     0

And here is the nightly:

  112 |     0
. |     0

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-highHigh priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions