Skip to content

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

@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

    1x-backport:completedC-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions