]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/issue-13641.rs
Auto merge of #106780 - flip1995:clippyup, r=Manishearth
[rust.git] / tests / 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 }