Skip to content

Unable to format chained method call with long generic argument list #5249

Open
@MingweiSamuel

Description

@MingweiSamuel

This does not get formatted:

fn main() {
    x.f::<
        A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
                        A, A, A, A, A, A, A, A, A, A, A, A,
    >();
}

It also happens for fewer number of longer type arguments:

fn main() {
    x.f::<
        AAAA<BBBB::CCCC, (DDDD, EEEE), FFFF>,
            AAAA<BBBB::CCCC, (DDDD, EEEE), FFFF>,
        AAAA<BBBB::CCCC, (DDDD, EEEE), FFFF>
        >();
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions