2018-07-15 21:11:54 +00:00
|
|
|
error[E0449]: unnecessary visibility qualifier
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-29161.rs:5:9
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | pub fn default() -> A { //~ ERROR unnecessary visibility qualifier
|
|
|
|
| ^^^ `pub` not permitted here because it's implied
|
|
|
|
|
|
|
|
error[E0603]: struct `A` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-29161.rs:13:8
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | a::A::default();
|
2018-10-27 17:21:34 +00:00
|
|
|
| ^
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
Some errors occurred: E0449, E0603.
|
|
|
|
For more information about an error, try `rustc --explain E0449`.
|