]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0616]: field `priv_field` of struct `MyStruct` is private |
ba9703b0 | 2 | --> $DIR/issue-3763.rs:18:32 |
8faf50e0 XL |
3 | | |
4 | LL | let _woohoo = (&my_struct).priv_field; | |
ba9703b0 | 5 | | ^^^^^^^^^^ private field |
8faf50e0 | 6 | |
1b1a35ee | 7 | error[E0616]: field `priv_field` of struct `MyStruct` is private |
ba9703b0 | 8 | --> $DIR/issue-3763.rs:21:41 |
8faf50e0 XL |
9 | | |
10 | LL | let _woohoo = (Box::new(my_struct)).priv_field; | |
ba9703b0 | 11 | | ^^^^^^^^^^ private field |
8faf50e0 | 12 | |
ba9703b0 | 13 | error[E0624]: associated function `happyfun` is private |
74b04a01 | 14 | --> $DIR/issue-3763.rs:24:18 |
8faf50e0 | 15 | | |
136023e0 XL |
16 | LL | fn happyfun(&self) {} |
17 | | ------------------ private associated function defined here | |
18 | ... | |
532ac7d7 | 19 | LL | (&my_struct).happyfun(); |
ba9703b0 | 20 | | ^^^^^^^^ private associated function |
8faf50e0 | 21 | |
ba9703b0 | 22 | error[E0624]: associated function `happyfun` is private |
74b04a01 | 23 | --> $DIR/issue-3763.rs:26:27 |
8faf50e0 | 24 | | |
136023e0 XL |
25 | LL | fn happyfun(&self) {} |
26 | | ------------------ private associated function defined here | |
27 | ... | |
532ac7d7 | 28 | LL | (Box::new(my_struct)).happyfun(); |
ba9703b0 | 29 | | ^^^^^^^^ private associated function |
8faf50e0 | 30 | |
1b1a35ee | 31 | error[E0616]: field `priv_field` of struct `MyStruct` is private |
ba9703b0 | 32 | --> $DIR/issue-3763.rs:27:26 |
8faf50e0 XL |
33 | | |
34 | LL | let nope = my_struct.priv_field; | |
ba9703b0 | 35 | | ^^^^^^^^^^ private field |
8faf50e0 XL |
36 | |
37 | error: aborting due to 5 previous errors | |
38 | ||
48663c56 | 39 | Some errors have detailed explanations: E0616, E0624. |
8faf50e0 | 40 | For more information about an error, try `rustc --explain E0616`. |