1 error[E0616]: field `priv_field` of struct `my_mod::MyStruct` is private
2 --> $DIR/issue-3763.rs:15:19
4 LL | let _woohoo = (&my_struct).priv_field;
5 | ^^^^^^^^^^^^^^^^^^^^^^^
7 error[E0616]: field `priv_field` of struct `my_mod::MyStruct` is private
8 --> $DIR/issue-3763.rs:18:19
10 LL | let _woohoo = (Box::new(my_struct)).priv_field;
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error[E0624]: method `happyfun` is private
14 --> $DIR/issue-3763.rs:21:18
16 LL | (&my_struct).happyfun();
19 error[E0624]: method `happyfun` is private
20 --> $DIR/issue-3763.rs:23:27
22 LL | (Box::new(my_struct)).happyfun();
25 error[E0616]: field `priv_field` of struct `my_mod::MyStruct` is private
26 --> $DIR/issue-3763.rs:24:16
28 LL | let nope = my_struct.priv_field;
29 | ^^^^^^^^^^^^^^^^^^^^
31 error: aborting due to 5 previous errors
33 Some errors have detailed explanations: E0616, E0624.
34 For more information about an error, try `rustc --explain E0616`.