about summary refs log tree commit diff
path: root/src/test/compile-fail/attempted-access-non-fatal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/attempted-access-non-fatal.rs')
-rw-r--r--src/test/compile-fail/attempted-access-non-fatal.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/attempted-access-non-fatal.rs b/src/test/compile-fail/attempted-access-non-fatal.rs
index fe8e793ed78..3d6c46f5ce3 100644
--- a/src/test/compile-fail/attempted-access-non-fatal.rs
+++ b/src/test/compile-fail/attempted-access-non-fatal.rs
@@ -11,6 +11,6 @@
 // Check that bogus field access is non-fatal
 fn main() {
     let x = 0;
-    let _ = x.foo; //~ no field `foo` on type `{integer}`
-    let _ = x.bar; //~ no field `bar` on type `{integer}`
+    let _ = x.foo; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
+    let _ = x.bar; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
 }