]> git.proxmox.com Git - rustc.git/blame - src/test/ui/union/union-suggest-field.thirunsafeck.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / union / union-suggest-field.thirunsafeck.stderr
CommitLineData
ff7c6d11 1error[E0560]: union `U` has no field named `principle`
136023e0 2 --> $DIR/union-suggest-field.rs:13:17
ff7c6d11 3 |
0531ce1d 4LL | let u = U { principle: 0 };
0731742a 5 | ^^^^^^^^^ help: a field with a similar name exists: `principal`
ff7c6d11
XL
6
7error[E0609]: no field `principial` on type `U`
136023e0 8 --> $DIR/union-suggest-field.rs:17:15
ff7c6d11 9 |
532ac7d7 10LL | let w = u.principial;
0731742a 11 | ^^^^^^^^^^ help: a field with a similar name exists: `principal`
ff7c6d11
XL
12
13error[E0615]: attempted to take value of method `calculate` on type `U`
136023e0 14 --> $DIR/union-suggest-field.rs:21:15
ff7c6d11 15 |
532ac7d7 16LL | let y = u.calculate;
ba9703b0
XL
17 | ^^^^^^^^^ method, not a field
18 |
19help: use parentheses to call the method
20 |
21LL | let y = u.calculate();
94222f64 22 | ++
ff7c6d11
XL
23
24error: aborting due to 3 previous errors
25
48663c56 26Some errors have detailed explanations: E0560, E0609, E0615.
0531ce1d 27For more information about an error, try `rustc --explain E0560`.