]> git.proxmox.com Git - rustc.git/blobdiff - src/test/parse-fail/issue-20711.rs
Imported Upstream version 1.1.0+dfsg1
[rustc.git] / src / test / parse-fail / issue-20711.rs
index 3b329d78237491a491a42020fc67083cc3829a3f..d1d8d3acf91871bc581d3799380a47aca6d1126f 100644 (file)
@@ -8,10 +8,12 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// compile-flags: -Z parse-only
+
 struct Foo;
 
 impl Foo {
     #[stable(feature = "rust1", since = "1.0.0")]
-} //~ ERROR expected one of `extern`, `fn`, `pub`, `type`, or `unsafe`, found `}`
+} //~ ERROR expected one of `const`, `extern`, `fn`, `pub`, `type`, or `unsafe`, found `}`
 
 fn main() {}