2017-01-28 17:56:52 -06:00
|
|
|
error[E0423]: expected value, found struct `Z`
|
2017-03-15 16:24:02 -05:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:26:9
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-03-15 16:24:02 -05:00
|
|
|
26 | Z;
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^
|
|
|
|
| |
|
|
|
|
| did you mean `Z { /* fields */ }`?
|
|
|
|
| constructor is not visible here due to private fields
|
|
|
|
|
|
|
|
|
= help: possible better candidate is found in another module, you can import it into scope:
|
|
|
|
`use m::n::Z;`
|
|
|
|
|
|
|
|
error[E0423]: expected value, found struct `S`
|
2017-03-15 16:24:02 -05:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:36:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-03-15 16:24:02 -05:00
|
|
|
36 | S;
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^
|
|
|
|
| |
|
|
|
|
| did you mean `S { /* fields */ }`?
|
|
|
|
| constructor is not visible here due to private fields
|
|
|
|
|
|
|
|
|
= help: possible better candidate is found in another module, you can import it into scope:
|
|
|
|
`use m::S;`
|
|
|
|
|
|
|
|
error[E0423]: expected value, found struct `xcrate::S`
|
2017-03-15 16:24:02 -05:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:42:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-03-15 16:24:02 -05:00
|
|
|
42 | xcrate::S;
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| did you mean `xcrate::S { /* fields */ }`?
|
|
|
|
| constructor is not visible here due to private fields
|
|
|
|
|
|
|
|
|
= help: possible better candidate is found in another module, you can import it into scope:
|
|
|
|
`use m::S;`
|
|
|
|
|
|
|
|
error: tuple struct `Z` is private
|
2017-03-15 16:24:02 -05:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:25:9
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-03-15 16:24:02 -05:00
|
|
|
25 | n::Z; //~ ERROR tuple struct `Z` is private
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: tuple struct `S` is private
|
2017-03-15 16:24:02 -05:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:35:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-03-15 16:24:02 -05:00
|
|
|
35 | m::S; //~ ERROR tuple struct `S` is private
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: tuple struct `Z` is private
|
2017-03-15 16:24:02 -05:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:39:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-03-15 16:24:02 -05:00
|
|
|
39 | m::n::Z; //~ ERROR tuple struct `Z` is private
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: tuple struct `S` is private
|
2017-03-15 16:24:02 -05:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:41:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-03-15 16:24:02 -05:00
|
|
|
41 | xcrate::m::S; //~ ERROR tuple struct `S` is private
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: tuple struct `Z` is private
|
2017-03-15 16:24:02 -05:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:45:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-03-15 16:24:02 -05:00
|
|
|
45 | xcrate::m::n::Z; //~ ERROR tuple struct `Z` is private
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|