fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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