2023-04-04 03:28:55 +00:00
|
|
|
error[E0449]: visibility qualifiers are not permitted here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-29161.rs:5:9
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | pub fn default() -> A {
|
2023-04-04 03:28:55 +00:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: trait items always share the visibility of their trait
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
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();
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private struct
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the struct `A` is defined here
|
|
|
|
--> $DIR/issue-29161.rs:2:5
|
|
|
|
|
|
|
|
|
LL | struct A;
|
|
|
|
| ^^^^^^^^^
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
Some errors have detailed explanations: E0449, E0603.
|
2018-07-15 21:11:54 +00:00
|
|
|
For more information about an error, try `rustc --explain E0449`.
|