]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/attempted-access-non-fatal.rs
New upstream version 1.14.0+dfsg1
[rustc.git] / src / test / compile-fail / attempted-access-non-fatal.rs
index 1d9249bc17b1fff82291554020d58821b45471bb..fe8e793ed781a2a765b5e6a1e90a321f13ed9d56 100644 (file)
@@ -11,6 +11,6 @@
 // Check that bogus field access is non-fatal
 fn main() {
     let x = 0;
-    let _ = x.foo; //~ ERROR attempted access of field
-    let _ = x.bar; //~ ERROR attempted access of field
+    let _ = x.foo; //~ no field `foo` on type `{integer}`
+    let _ = x.bar; //~ no field `bar` on type `{integer}`
 }