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