]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/issue-13641.stderr
Merge commit '7b73b60faca71d01d900e49831fcb84553e93019' into sync-rustfmt
[rust.git] / src / test / ui / privacy / issue-13641.stderr
1 error[E0603]: struct `Foo` is private
2   --> $DIR/issue-13641.rs:9:8
3    |
4 LL |     a::Foo::new();
5    |        ^^^ private struct
6    |
7 note: the struct `Foo` is defined here
8   --> $DIR/issue-13641.rs:2:5
9    |
10 LL |     struct Foo;
11    |     ^^^^^^^^^^^
12
13 error[E0603]: enum `Bar` is private
14   --> $DIR/issue-13641.rs:11:8
15    |
16 LL |     a::Bar::new();
17    |        ^^^ private enum
18    |
19 note: the enum `Bar` is defined here
20   --> $DIR/issue-13641.rs:4:5
21    |
22 LL |     enum Bar {}
23    |     ^^^^^^^^
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0603`.