diff options
Diffstat (limited to 'tests/ui/structs/struct-fields-typo.stderr')
-rw-r--r-- | tests/ui/structs/struct-fields-typo.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/structs/struct-fields-typo.stderr b/tests/ui/structs/struct-fields-typo.stderr new file mode 100644 index 000000000..6949a0a4a --- /dev/null +++ b/tests/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`. |