Skip to content

function return type exceeds max width without wrapping #6521

Open
@jan-ferdinand

Description

@jan-ferdinand

rustfmt 1.8.0-stable 2025-03-15 4eb161250e does not reformat the following input, violating the default max_width of 100 characters:

mod tests {
    // 100 characters is ··································································· here: |
    fn a_very_long_function_name_such_as_sometimes_found_in_descriptive_test_fn() -> CustomResultType
    {
        todo!()
    }
}

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    e-max widtherror[internal]: line formatted, but exceeded maximum width

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions