Skip to content

Visual IndentStyle is broken on impl with where clause  #3071

@zonyitoo

Description

@zonyitoo

Test code:

struct A<T>
    where T: Send
{
    x: u32,
}

impl<T> A<T> where T: Send
{
    fn foo() {}
}

The impl block is expected to be formatted as:

impl<T> A<T>
    where T: Send
{
    fn foo() {}
}

Everything is ok for indent_style: "Block".

rustfmt version:

rustfmt 0.99.5-nightly (90692a59 2018-09-26)

Metadata

Metadata

Assignees

Labels

good first issueIssues up for grabs, also good candidates for new rustfmt contributorsonly-with-optionrequires a non-default option value to reproducepoor-formatting

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions