]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/E0026.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / test / compile-fail / E0026.rs
index 359c2a822a243d40fca9275d401f0bff8eace55a..ac609da4cbdde72a105871b8e8e74a1d6edf4845 100644 (file)
@@ -16,6 +16,8 @@ struct Thing {
 fn main() {
     let thing = Thing { x: 0, y: 0 };
     match thing {
-        Thing { x, y, z } => {} //~ ERROR E0026
+        Thing { x, y, z } => {}
+        //~^ ERROR struct `Thing` does not have a field named `z` [E0026]
+        //~| NOTE struct `Thing` does not have field `z`
     }
 }