]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/issue-13641.rs
Merge commit 'efa8f5521d3813cc897ba29ea0ef98c7aef66bb6' into rustfmt-subtree
[rust.git] / src / test / ui / privacy / issue-13641.rs
1 mod a {
2     struct Foo;
3     impl Foo { pub fn new() {} }
4     enum Bar {}
5     impl Bar { pub fn new() {} }
6 }
7
8 fn main() {
9     a::Foo::new();
10     //~^ ERROR: struct `Foo` is private
11     a::Bar::new();
12     //~^ ERROR: enum `Bar` is private
13 }