summaryrefslogtreecommitdiffstats
path: root/tests/ui/union/union-suggest-field.mirunsafeck.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/union/union-suggest-field.mirunsafeck.stderr')
-rw-r--r--tests/ui/union/union-suggest-field.mirunsafeck.stderr14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/ui/union/union-suggest-field.mirunsafeck.stderr b/tests/ui/union/union-suggest-field.mirunsafeck.stderr
index 58b1f5cb0..efe4987bd 100644
--- a/tests/ui/union/union-suggest-field.mirunsafeck.stderr
+++ b/tests/ui/union/union-suggest-field.mirunsafeck.stderr
@@ -2,13 +2,23 @@ error[E0560]: union `U` has no field named `principle`
--> $DIR/union-suggest-field.rs:13:17
|
LL | let u = U { principle: 0 };
- | ^^^^^^^^^ help: a field with a similar name exists: `principal`
+ | ^^^^^^^^^ unknown field
+ |
+help: a field with a similar name exists
+ |
+LL | let u = U { principal: 0 };
+ | ~~~~~~~~~
error[E0609]: no field `principial` on type `U`
--> $DIR/union-suggest-field.rs:17:15
|
LL | let w = u.principial;
- | ^^^^^^^^^^ help: a field with a similar name exists: `principal`
+ | ^^^^^^^^^^ unknown field
+ |
+help: a field with a similar name exists
+ |
+LL | let w = u.principal;
+ | ~~~~~~~~~
error[E0615]: attempted to take value of method `calculate` on type `U`
--> $DIR/union-suggest-field.rs:21:15