]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3763.stderr
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
[rust.git] / src / test / ui / issues / issue-3763.stderr
1 error[E0616]: field `priv_field` of struct `MyStruct` is private
2   --> $DIR/issue-3763.rs:18:32
3    |
4 LL |     let _woohoo = (&my_struct).priv_field;
5    |                                ^^^^^^^^^^ private field
6
7 error[E0616]: field `priv_field` of struct `MyStruct` is private
8   --> $DIR/issue-3763.rs:21:41
9    |
10 LL |     let _woohoo = (Box::new(my_struct)).priv_field;
11    |                                         ^^^^^^^^^^ private field
12
13 error[E0624]: associated function `happyfun` is private
14   --> $DIR/issue-3763.rs:24:18
15    |
16 LL |         fn happyfun(&self) {}
17    |         ------------------ private associated function defined here
18 ...
19 LL |     (&my_struct).happyfun();
20    |                  ^^^^^^^^ private associated function
21
22 error[E0624]: associated function `happyfun` is private
23   --> $DIR/issue-3763.rs:26:27
24    |
25 LL |         fn happyfun(&self) {}
26    |         ------------------ private associated function defined here
27 ...
28 LL |     (Box::new(my_struct)).happyfun();
29    |                           ^^^^^^^^ private associated function
30
31 error[E0616]: field `priv_field` of struct `MyStruct` is private
32   --> $DIR/issue-3763.rs:27:26
33    |
34 LL |     let nope = my_struct.priv_field;
35    |                          ^^^^^^^^^^ private field
36
37 error: aborting due to 5 previous errors
38
39 Some errors have detailed explanations: E0616, E0624.
40 For more information about an error, try `rustc --explain E0616`.