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