1error[E0449]: unnecessary visibility qualifier
2  --> $DIR/issue-29161.rs:5:9
3   |
4LL |         pub fn default() -> A {
5   |         ^^^ `pub` not permitted here because it's implied
6
7error[E0603]: struct `A` is private
8  --> $DIR/issue-29161.rs:13:8
9   |
10LL |     a::A::default();
11   |        ^ private struct
12   |
13note: the struct `A` is defined here
14  --> $DIR/issue-29161.rs:2:5
15   |
16LL |     struct A;
17   |     ^^^^^^^^^
18
19error: aborting due to 2 previous errors
20
21Some errors have detailed explanations: E0449, E0603.
22For more information about an error, try `rustc --explain E0449`.
23