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