summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs/struct-fields-typo.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/structs/struct-fields-typo.stderr')
-rw-r--r--src/test/ui/structs/struct-fields-typo.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/structs/struct-fields-typo.stderr b/src/test/ui/structs/struct-fields-typo.stderr
new file mode 100644
index 000000000..6949a0a4a
--- /dev/null
+++ b/src/test/ui/structs/struct-fields-typo.stderr
@@ -0,0 +1,9 @@
+error[E0609]: no field `baa` on type `BuildData`
+ --> $DIR/struct-fields-typo.rs:11:17
+ |
+LL | let x = foo.baa;
+ | ^^^ help: a field with a similar name exists: `bar`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0609`.