Skip to content

"left behind trailing whitespace" with comment between let x = and value #5017

Open
@camelid

Description

@camelid

Code

Playground

fn main() {
    let number = 
    // A comment
    1;
}

Error

error[internal]: left behind trailing whitespace
 --> /playground/src/main.rs:2:2:17
  |
2 |     let number = 
  |                 ^
  |

warning: rustfmt has failed to format. See previous 1 errors.

Version

1.4.37-nightly (2021-10-05 25ec827) (current version on the playground)

Metadata

Metadata

Assignees

No one assigned

    Labels

    1x-backport:pendingFixed/resolved in source but not yet backported to a 1x branch and releasee-trailing whitespaceerror[internal]: left behind trailing whitespacefixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions