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