about summary refs log tree commit diff
path: root/tests/ui/privacy/issue-29161.stderr
blob: f8911cb09c1bc6765e7794d775d1d5b44f1ddb9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
error[E0449]: visibility qualifiers are not permitted here
  --> $DIR/issue-29161.rs:5:9
   |
LL |         pub fn default() -> A {
   |         ^^^ help: remove the qualifier
   |
   = note: trait items always share the visibility of their trait

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`.