about summary refs log tree commit diff
path: root/src/test/compile-fail/attempted-access-non-fatal.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-06-11 19:48:46 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2017-06-12 01:47:01 +0200
commit2f3789474042e16f0fb35d1a03d1acfce151774e (patch)
treebc12b6e368de520b8c3bfcb7ea28e624d1c48ea8 /src/test/compile-fail/attempted-access-non-fatal.rs
parentf4dd365bbb362a0aab0beaa31db73bf55d6a0481 (diff)
downloadrust-2f3789474042e16f0fb35d1a03d1acfce151774e.tar.gz
rust-2f3789474042e16f0fb35d1a03d1acfce151774e.zip
Add E0610
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]
 }