5 pub favorite_integer: isize,
7 pub innocently_misspellable: (),
9 yet_another_field: bool,
10 always_more_fields: bool,
15 fn new_with_secret_two() -> Self {
16 Self { secret_integer: 2, inocently_mispellable: () }
20 fn new_with_secret_three() -> Self {
21 Self { secret_integer: 3, egregiously_nonexistent_field: () }
31 let demo = Demo::default();
32 let innocent_field_misaccess = demo.inocently_mispellable;
34 // note shouldn't suggest private fields
35 let egregious_field_misaccess = demo.egregiously_nonexistent_field;