Skip to content

Disallow meaningless 'priv' and 'pub' in fn. #10111

@bytbox

Description

@bytbox

The compiler ought to issue an error when confronted with:

fn f() {
    priv struct A;
    pub struct B;
}

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