]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/issue-29161.stderr
Auto merge of #106780 - flip1995:clippyup, r=Manishearth
[rust.git] / tests / ui / privacy / issue-29161.stderr
1 error[E0449]: unnecessary visibility qualifier
2   --> $DIR/issue-29161.rs:5:9
3    |
4 LL |         pub fn default() -> A {
5    |         ^^^ `pub` not permitted here because it's implied
6
7 error[E0603]: struct `A` is private
8   --> $DIR/issue-29161.rs:13:8
9    |
10 LL |     a::A::default();
11    |        ^ private struct
12    |
13 note: the struct `A` is defined here
14   --> $DIR/issue-29161.rs:2:5
15    |
16 LL |     struct A;
17    |     ^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20
21 Some errors have detailed explanations: E0449, E0603.
22 For more information about an error, try `rustc --explain E0449`.