1 error[E0560]: union `U` has no field named `principle`
2 --> $DIR/union-suggest-field.rs:13:17
4 LL | let u = U { principle: 0 };
5 | ^^^^^^^^^ help: a field with a similar name exists: `principal`
7 error[E0609]: no field `principial` on type `U`
8 --> $DIR/union-suggest-field.rs:17:15
10 LL | let w = u.principial;
11 | ^^^^^^^^^^ help: a field with a similar name exists: `principal`
13 error[E0615]: attempted to take value of method `calculate` on type `U`
14 --> $DIR/union-suggest-field.rs:21:15
16 LL | let y = u.calculate;
17 | ^^^^^^^^^ method, not a field
19 help: use parentheses to call the method
21 LL | let y = u.calculate();
24 error: aborting due to 3 previous errors
26 Some errors have detailed explanations: E0560, E0609, E0615.
27 For more information about an error, try `rustc --explain E0560`.