about summary refs log tree commit diff
path: root/src/test/ui/structs/struct-fields-typo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/structs/struct-fields-typo.rs')
-rw-r--r--src/test/ui/structs/struct-fields-typo.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/ui/structs/struct-fields-typo.rs b/src/test/ui/structs/struct-fields-typo.rs
index b435a0a4777..0e9b2ae5145 100644
--- a/src/test/ui/structs/struct-fields-typo.rs
+++ b/src/test/ui/structs/struct-fields-typo.rs
@@ -8,7 +8,8 @@ fn main() {
         foo: 0,
         bar: 0.5,
     };
-    let x = foo.baa;//~ no field `baa` on type `BuildData`
-    //~^ did you mean `bar`?
+    let x = foo.baa; //~ ERROR no field `baa` on type `BuildData`
+                     //~| HELP a field with a similar name exists
+                     //~| SUGGESTION bar
     println!("{}", x);
 }