Skip to content

Empty lines in where-clause #5655

Closed
@stanislav-tkach

Description

@stanislav-tkach

I would expect the empty line between the T: std::fmt::Debug and T: std::fmt::Display lines to be removed by rustfmt, but it isn't:

fn foo<T>(_: T)
where
    T: std::fmt::Debug,

    T: std::fmt::Display,
{
}

At least not by the rustfmt 1.5.1-stable (69f9c33d 2022-12-12) version.

I'm sorry if it is a duplicate, but I haven't been able to find any related issues.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions