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