Skip to content

dyn and :: should have a space between #3724

Closed
@agrover

Description

@agrover

When given this code:

fn foo(_x: &u64) -> Option<&(dyn ::std::error::Error + 'static)> {
    None
}

rustfmt 1.2.2 stable removes the space between dyn and ::, resulting in this:

fn foo(_x: &u64) -> Option<&(dyn::std::error::Error + 'static)> {
    None
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions