2017-01-28 17:56:52 -06:00
|
|
|
error[E0423]: expected value, found struct `Z`
|
2018-01-15 07:18:06 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:30:9
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
30 | 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-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
|
|
|
|
|
2018-01-01 17:29:50 -06:00
|
|
|
25 | 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`
|
2018-01-15 07:18:06 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:43:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
43 | S;
|
2017-12-31 18:35:52 -06:00
|
|
|
| ^ constructor is not visible here due to private 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
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
35 | use m::S;
|
2018-01-01 17:29:50 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
error[E0423]: expected value, found struct `S2`
|
2018-01-15 07:18:06 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:48:5
|
2017-07-05 18:39:06 -05:00
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
48 | S2;
|
2018-01-01 17:29:50 -06:00
|
|
|
| ^^ did you mean `S2 { /* fields */ }`?
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
|
|
error[E0423]: expected value, found struct `xcrate::S`
|
2018-01-15 07:18:06 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:53:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
53 | xcrate::S;
|
2017-12-31 18:35:52 -06:00
|
|
|
| ^^^^^^^^^ constructor is not visible here due to private 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
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
35 | 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
|
2018-01-01 17:29:50 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:28:9
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
28 | n::Z;
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^
|
|
|
|
|
2017-06-02 14:38:52 -05:00
|
|
|
error[E0603]: tuple struct `S` is private
|
2018-01-15 07:18:06 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:39:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
39 | m::S;
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
error[E0603]: tuple struct `S` is private
|
|
|
|
--> $DIR/privacy-struct-ctor.rs:41:16
|
|
|
|
|
|
|
|
|
41 | let _: S = m::S(2);
|
|
|
|
| ^^^^
|
|
|
|
|
2017-06-02 14:38:52 -05:00
|
|
|
error[E0603]: tuple struct `Z` is private
|
2018-01-15 07:18:06 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:45:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
45 | m::n::Z;
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2017-06-02 14:38:52 -05:00
|
|
|
error[E0603]: tuple struct `S` is private
|
2018-01-15 07:18:06 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:51:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
51 | xcrate::m::S;
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2017-06-02 14:38:52 -05:00
|
|
|
error[E0603]: tuple struct `Z` is private
|
2018-01-15 07:18:06 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:55:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
55 | xcrate::m::n::Z;
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
error: aborting due to 10 previous errors
|
2017-01-28 17:56:52 -06:00
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
You've got a few errors: E0423, E0603
|
|
|
|
If you want more information on an error, try using "rustc --explain E0423"
|