mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
23 lines
588 B
Plaintext
23 lines
588 B
Plaintext
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();
|
|
| ^ private struct
|
|
|
|
|
note: the struct `A` is defined here
|
|
--> $DIR/issue-29161.rs:2:5
|
|
|
|
|
LL | struct A;
|
|
| ^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0449, E0603.
|
|
For more information about an error, try `rustc --explain E0449`.
|