Skip to content

Strange \n in output of assert #108341

Closed
Closed
@safinaskar

Description

@safinaskar

I tried this code:

https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=101cc1b94e74b6bcdec96994d034dbab

I see strange \n in the output. I don't like the output

Compiling playground v0.0.1 (/playground)
    Finished dev [unoptimized + debuginfo] target(s) in 0.79s
     Running `target/debug/playground`
thread 'main' panicked at 'assertion failed: 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0\n                                + 0 + 0 + 0 + 0 + 0 + 0 + 0 == 1', src/main.rs:2:5
note: [run with `RUST_BACKTRACE=1` environment variable to display a backtrace](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=101cc1b94e74b6bcdec96994d034dbab#)

1.69.0-nightly (2023-02-22 fdbc4329cb781c7768ff)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-panicArea: Panicking machineryC-bugCategory: This is a bug.D-inconsistentDiagnostics: Inconsistency in formatting, grammar or style between diagnostic messages.D-papercutDiagnostics: An error or lint that needs small tweaks.T-compilerRelevant to the compiler 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