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