]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/privacy-struct-ctor.stderr
57b143d34dbd20ef602f50944186aa9448a9dada
[rust.git] / src / test / ui / resolve / privacy-struct-ctor.stderr
1 error[E0423]: expected value, found struct `Z`
2   --> $DIR/privacy-struct-ctor.rs:26:9
3    |
4 26 |         Z;
5    |         ^
6    |         |
7    |         did you mean `Z { /* fields */ }`?
8    |         did you mean `S`?
9    |         constructor is not visible here due to private fields
10    |
11 help: possible better candidate is found in another module, you can import it into scope
12    |
13 15 | use m::n::Z;
14    |
15
16 error[E0423]: expected value, found struct `S`
17   --> $DIR/privacy-struct-ctor.rs:36:5
18    |
19 36 |     S;
20    |     ^
21    |     |
22    |     did you mean `S { /* fields */ }`?
23    |     constructor is not visible here due to private fields
24    |
25 help: possible better candidate is found in another module, you can import it into scope
26    |
27 13 | use m::S;
28    |
29
30 error[E0423]: expected value, found struct `xcrate::S`
31   --> $DIR/privacy-struct-ctor.rs:42:5
32    |
33 42 |     xcrate::S;
34    |     ^^^^^^^^^
35    |     |
36    |     did you mean `xcrate::S { /* fields */ }`?
37    |     constructor is not visible here due to private fields
38    |
39 help: possible better candidate is found in another module, you can import it into scope
40    |
41 13 | use m::S;
42    |
43
44 error[E0603]: tuple struct `Z` is private
45   --> $DIR/privacy-struct-ctor.rs:25:9
46    |
47 25 |         n::Z; //~ ERROR tuple struct `Z` is private
48    |         ^^^^
49
50 error[E0603]: tuple struct `S` is private
51   --> $DIR/privacy-struct-ctor.rs:35:5
52    |
53 35 |     m::S; //~ ERROR tuple struct `S` is private
54    |     ^^^^
55
56 error[E0603]: tuple struct `Z` is private
57   --> $DIR/privacy-struct-ctor.rs:39:5
58    |
59 39 |     m::n::Z; //~ ERROR tuple struct `Z` is private
60    |     ^^^^^^^
61
62 error[E0603]: tuple struct `S` is private
63   --> $DIR/privacy-struct-ctor.rs:41:5
64    |
65 41 |     xcrate::m::S; //~ ERROR tuple struct `S` is private
66    |     ^^^^^^^^^^^^
67
68 error[E0603]: tuple struct `Z` is private
69   --> $DIR/privacy-struct-ctor.rs:45:5
70    |
71 45 |     xcrate::m::n::Z; //~ ERROR tuple struct `Z` is private
72    |     ^^^^^^^^^^^^^^^
73
74 error: aborting due to 8 previous errors
75