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