Skip to content

Visibility clause duplicated into named unit struct #2110

Closed
@stoklund

Description

@stoklund

Examples with rustfmt 0.9.0-nightly:

$ echo "pub(super) struct Foo();" | rustfmt
pub(super) struct Foo(super);
$ echo "pub(crate) struct Foo();" | rustfmt
pub(crate) struct Foo(crate);
$ echo "pub(in self) struct Foo();" | rustfmt
pub(self) struct Foo(in self);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPanic, non-idempotency, invalid code, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions