Skip to content

pub(in path), pub(super), and pub(self) are broken #2398

Closed
@uu1t

Description

@uu1t

Example from Visibility and Privacy in the reference:

Before

pub mod outer_mod {
    pub mod inner_mod {
        pub(in outer_mod) fn outer_mod_visible_fn() {}
        pub(super) fn super_mod_visible_fn() {}
        pub(self) fn inner_mod_visible_fn() {}
    }
}

After

pub mod outer_mod {
    pub mod inner_mod {
        pub(in outer_mod) fn outer_mod_visible_fn() )
        {
        }
        pub(super) fn super_mod_visible_fn() )
        {
        }
        pub(self) fn inner_mod_visible_fn() )
        {
        }
    }
}

version: 0.3.6-nightly (dfc67a5d 2018-01-26)

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