fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0423]: expected value, found struct `Z` 2 --> $DIR/privacy-struct-ctor.rs:20:9 3 | 4LL | Z; 5 | ^ 6 | | 7 | constructor is not visible here due to private fields 8 | help: a tuple struct with a similar name exists: `S` 9 10error[E0423]: expected value, found struct `S` 11 --> $DIR/privacy-struct-ctor.rs:33:5 12 | 13LL | S; 14 | ^ constructor is not visible here due to private fields 15 16error[E0423]: expected value, found struct `S2` 17 --> $DIR/privacy-struct-ctor.rs:38:5 18 | 19LL | S2; 20 | ^^ did you mean `S2 { /* fields */ }`? 21 22error[E0423]: expected value, found struct `xcrate::S` 23 --> $DIR/privacy-struct-ctor.rs:43:5 24 | 25LL | xcrate::S; 26 | ^^^^^^^^^ constructor is not visible here due to private fields 27help: possible better candidate is found in another module, you can import it into scope 28 | 29LL | use m::S; 30 | 31 32error[E0603]: tuple struct `Z` is private 33 --> $DIR/privacy-struct-ctor.rs:18:12 34 | 35LL | n::Z; 36 | ^ 37 | 38 = note: a tuple struct constructor is private if any of its fields is private 39 40error[E0603]: tuple struct `S` is private 41 --> $DIR/privacy-struct-ctor.rs:29:8 42 | 43LL | m::S; 44 | ^ 45 | 46 = note: a tuple struct constructor is private if any of its fields is private 47 48error[E0603]: tuple struct `S` is private 49 --> $DIR/privacy-struct-ctor.rs:31:19 50 | 51LL | let _: S = m::S(2); 52 | ^ 53 | 54 = note: a tuple struct constructor is private if any of its fields is private 55 56error[E0603]: tuple struct `Z` is private 57 --> $DIR/privacy-struct-ctor.rs:35:11 58 | 59LL | m::n::Z; 60 | ^ 61 | 62 = note: a tuple struct constructor is private if any of its fields is private 63 64error[E0603]: tuple struct `S` is private 65 --> $DIR/privacy-struct-ctor.rs:41:16 66 | 67LL | xcrate::m::S; 68 | ^ 69 | 70 = note: a tuple struct constructor is private if any of its fields is private 71 72error[E0603]: tuple struct `Z` is private 73 --> $DIR/privacy-struct-ctor.rs:45:19 74 | 75LL | xcrate::m::n::Z; 76 | ^ 77 | 78 = note: a tuple struct constructor is private if any of its fields is private 79 80error: aborting due to 10 previous errors 81 82Some errors have detailed explanations: E0423, E0603. 83For more information about an error, try `rustc --explain E0423`.