]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/privacy-struct-ctor.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / resolve / privacy-struct-ctor.stderr
1 error[E0423]: expected value, found struct `Z`
2   --> $DIR/privacy-struct-ctor.rs:20:9
3    |
4 LL |         Z;
5    |         ^
6    |         |
7    |         constructor is not visible here due to private fields
8    |         help: a tuple struct with a similar name exists: `S`
9
10 error[E0423]: expected value, found struct `S`
11   --> $DIR/privacy-struct-ctor.rs:33:5
12    |
13 LL |     S;
14    |     ^ constructor is not visible here due to private fields
15
16 error[E0423]: expected value, found struct `S2`
17   --> $DIR/privacy-struct-ctor.rs:38:5
18    |
19 LL |     S2;
20    |     ^^ did you mean `S2 { /* fields */ }`?
21
22 error[E0423]: expected value, found struct `xcrate::S`
23   --> $DIR/privacy-struct-ctor.rs:43:5
24    |
25 LL |     xcrate::S;
26    |     ^^^^^^^^^ constructor is not visible here due to private fields
27 help: possible better candidate is found in another module, you can import it into scope
28    |
29 LL | use m::S;
30    |
31
32 error[E0603]: tuple struct `Z` is private
33   --> $DIR/privacy-struct-ctor.rs:18:12
34    |
35 LL |         n::Z;
36    |            ^
37
38 error[E0603]: tuple struct `S` is private
39   --> $DIR/privacy-struct-ctor.rs:29:8
40    |
41 LL |     m::S;
42    |        ^
43
44 error[E0603]: tuple struct `S` is private
45   --> $DIR/privacy-struct-ctor.rs:31:19
46    |
47 LL |     let _: S = m::S(2);
48    |                   ^
49
50 error[E0603]: tuple struct `Z` is private
51   --> $DIR/privacy-struct-ctor.rs:35:11
52    |
53 LL |     m::n::Z;
54    |           ^
55
56 error[E0603]: tuple struct `S` is private
57   --> $DIR/privacy-struct-ctor.rs:41:16
58    |
59 LL |     xcrate::m::S;
60    |                ^
61
62 error[E0603]: tuple struct `Z` is private
63   --> $DIR/privacy-struct-ctor.rs:45:19
64    |
65 LL |     xcrate::m::n::Z;
66    |                   ^
67
68 error: aborting due to 10 previous errors
69
70 Some errors have detailed explanations: E0423, E0603.
71 For more information about an error, try `rustc --explain E0423`.