Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
bytbox opened this issue Oct 28, 2013 · 0 comments · Fixed by #10443
Closed

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

bytbox opened this issue Oct 28, 2013 · 0 comments · Fixed by #10443

Comments

@bytbox
Copy link
Contributor

bytbox commented Oct 28, 2013

The compiler ought to issue an error when confronted with:

fn f() {
    priv struct A;
    pub struct B;
}
flip1995 pushed a commit to flip1995/rust that referenced this issue Dec 29, 2022
Changelog fix

changelog: show link to  [`derive_partial_eq_without_eq`] at changelog file
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant