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
|
|
|
| ^
|
|
|
|
| |
|
2017-04-18 06:28:05 -05:00
|
|
|
| did you mean `S`?
|
2017-01-28 17:56:52 -06:00
|
|
|
| constructor is not visible here due to private fields
|
2017-07-05 11:58:22 -05:00
|
|
|
| did you mean `Z { /* fields */ }`?
|
2017-05-10 06:19:29 -05:00
|
|
|
help: possible better candidate is found in another module, you can import it into scope
|
2017-06-28 01:16:04 -05:00
|
|
|
|
|
2017-08-31 08:45:16 -05:00
|
|
|
22 | use m::n::Z;
|
2017-07-05 18:39:06 -05:00
|
|
|
|
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
|
|
error[E0423]: expected value, found struct `S`
|
2017-11-20 06:13:27 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:38:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
38 | S;
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^
|
|
|
|
| |
|
|
|
|
| constructor is not visible here due to private fields
|
2017-07-05 11:58:22 -05:00
|
|
|
| did you mean `S { /* fields */ }`?
|
2017-05-10 06:19:29 -05:00
|
|
|
help: possible better candidate is found in another module, you can import it into scope
|
2017-06-28 01:16:04 -05:00
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
34 | use m::S;
|
2017-07-05 18:39:06 -05:00
|
|
|
|
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
|
|
error[E0423]: expected value, found struct `xcrate::S`
|
2017-11-20 06:13:27 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:45:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
45 | xcrate::S;
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| constructor is not visible here due to private fields
|
2017-07-05 11:58:22 -05:00
|
|
|
| did you mean `xcrate::S { /* fields */ }`?
|
2017-05-10 06:19:29 -05:00
|
|
|
help: possible better candidate is found in another module, you can import it into scope
|
2017-06-28 01:16:04 -05:00
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
34 | use m::S;
|
2017-07-05 18:39:06 -05:00
|
|
|
|
|
2017-01-28 17:56:52 -06:00
|
|
|
|
2017-06-02 14:38:52 -05:00
|
|
|
error[E0603]: 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
|
|
|
| ^^^^
|
|
|
|
|
2017-06-02 14:38:52 -05:00
|
|
|
error[E0603]: tuple struct `S` is private
|
2017-11-20 06:13:27 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:37:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
37 | m::S; //~ ERROR tuple struct `S` is private
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^
|
|
|
|
|
2017-06-02 14:38:52 -05:00
|
|
|
error[E0603]: tuple struct `Z` is private
|
2017-11-20 06:13:27 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:42:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
42 | m::n::Z; //~ ERROR tuple struct `Z` is private
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2017-06-02 14:38:52 -05:00
|
|
|
error[E0603]: tuple struct `S` is private
|
2017-11-20 06:13:27 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:44:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
44 | xcrate::m::S; //~ ERROR tuple struct `S` is private
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2017-06-02 14:38:52 -05:00
|
|
|
error[E0603]: tuple struct `Z` is private
|
2017-11-20 06:13:27 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:49:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
49 | xcrate::m::n::Z; //~ ERROR tuple struct `Z` is private
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to 8 previous errors
|
2017-01-28 17:56:52 -06:00
|
|
|
|