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