blob: 38b96033252351be8f4cb638dd08f855d362e896 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
error[E0451]: field `x` of struct `S` is private
--> $DIR/visibility.rs:37:9
|
LL | let _a = baz::S {
| ------ in this type
LL | ..
| ^^ field `x` is private
error[E0451]: field `x` of struct `S` is private
--> $DIR/visibility.rs:40:9
|
LL | let _b = baz::S {
| ------ in this type
LL | x: 0,
| ^ private field
error[E0451]: fields `beta` and `gamma` of struct `Alpha` are private
--> $DIR/visibility.rs:13:26
|
LL | let _x = Alpha { .. };
| ^^ fields `beta` and `gamma` are private
error[E0451]: fields `beta` and `gamma` of struct `Alpha` are private
--> $DIR/visibility.rs:16:13
|
LL | let _x = Alpha {
| ----- in this type
LL | beta: 0,
| ^^^^ private field
LL | gamma: false,
| ^^^^^ private field
error[E0451]: fields `beta` and `gamma` of struct `Alpha` are private
--> $DIR/visibility.rs:20:13
|
LL | let _x = Alpha {
| ----- in this type
LL | beta: 0,
| ^^^^^^^ private field
LL | ..
| ^^ field `gamma` is private
error[E0451]: fields `beta` and `gamma` of struct `Alpha` are private
--> $DIR/visibility.rs:23:26
|
LL | let _x = Alpha { beta: 0, .. };
| ^^^^^^^ ^^ field `gamma` is private
| |
| private field
error[E0451]: fields `beta` and `gamma` of struct `Alpha` are private
--> $DIR/visibility.rs:25:26
|
LL | let _x = Alpha { beta: 0, ..Default::default() };
| ^^^^^^^ ^^^^^^^^^^^^^^^^^^ field `gamma` is private
| |
| private field
error: aborting due to 7 previous errors
For more information about this error, try `rustc --explain E0451`.
|