2017-01-28 17:56:52 -06:00
|
|
|
error[E0423]: expected value, found struct `Z`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:20:9
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Z;
|
2017-01-28 17:56:52 -06:00
|
|
|
| ^
|
2019-02-11 12:29:10 -06:00
|
|
|
| |
|
|
|
|
| constructor is not visible here due to private fields
|
|
|
|
| help: a tuple struct with a similar name exists: `S`
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
|
|
error[E0423]: expected value, found struct `S`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:33:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | S;
|
2017-12-31 18:35:52 -06:00
|
|
|
| ^ constructor is not visible here due to private fields
|
2018-01-01 17:29:50 -06:00
|
|
|
|
|
|
|
error[E0423]: expected value, found struct `S2`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:38:5
|
2017-07-05 18:39:06 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | 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-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:43:5
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | 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-02-24 17:01:39 -06:00
|
|
|
LL | 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-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:18:12
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | n::Z;
|
2018-10-27 12:21:34 -05:00
|
|
|
| ^
|
2017-01-28 17:56:52 -06:00
|
|
|
|
2017-06-02 14:38:52 -05:00
|
|
|
error[E0603]: tuple struct `S` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:29:8
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | m::S;
|
2018-10-27 12:21:34 -05:00
|
|
|
| ^
|
2017-01-28 17:56:52 -06:00
|
|
|
|
2018-01-15 07:18:06 -06:00
|
|
|
error[E0603]: tuple struct `S` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:31:19
|
2018-01-15 07:18:06 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let _: S = m::S(2);
|
2018-10-27 12:21:34 -05:00
|
|
|
| ^
|
2018-01-15 07:18:06 -06:00
|
|
|
|
2017-06-02 14:38:52 -05:00
|
|
|
error[E0603]: tuple struct `Z` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:35:11
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | m::n::Z;
|
2018-10-27 12:21:34 -05:00
|
|
|
| ^
|
2017-01-28 17:56:52 -06:00
|
|
|
|
2017-06-02 14:38:52 -05:00
|
|
|
error[E0603]: tuple struct `S` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:41:16
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | xcrate::m::S;
|
2018-10-27 12:21:34 -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-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-struct-ctor.rs:45:19
|
2017-01-28 17:56:52 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | xcrate::m::n::Z;
|
2018-10-27 12:21:34 -05:00
|
|
|
| ^
|
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-03-03 08:59:40 -06:00
|
|
|
Some errors occurred: E0423, E0603.
|
|
|
|
For more information about an error, try `rustc --explain E0423`.
|