Skip to content

Formatting result of const-generic args in supertraits causes compile-error #4204

Closed
@Boscop

Description

@Boscop

rustfmt wrongly formats this

pub trait Foo: Bar<{Baz::COUNT}> {
	const ASD: usize;
}

like this:

pub trait Foo: Bar<{ Baz::COUNT }> {
	Baz::COUNT}> {
	const ASD: usize;
}

which is really bad because this misformatting prevents compilation!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions