]> git.lizzy.rs Git - rust.git/blobdiff - src/test/parse-fail/keyword-struct-as-identifier.rs
Auto merge of #54919 - alexcrichton:update-cargo, r=Mark-Simulacrum
[rust.git] / src / test / parse-fail / keyword-struct-as-identifier.rs
index bd42eac0ecbe00cdcaf113b2392db21a1617f016..591bd25db65dab984d7e8ec5489d935f509a3abd 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -8,8 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// compile-flags: -Z parse-only
+
 // This file was auto-generated using 'src/etc/generate-keyword-tests.py struct'
 
 fn main() {
-    let struct = "foo"; //~ error: ident
+    let struct = "foo"; //~ error: expected pattern, found keyword `struct`
 }