about summary refs log tree commit diff
path: root/src/test/parse-fail/unsized.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/parse-fail/unsized.rs')
-rw-r--r--src/test/parse-fail/unsized.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/parse-fail/unsized.rs b/src/test/parse-fail/unsized.rs
index 92dbea0424b..1bcb5208d76 100644
--- a/src/test/parse-fail/unsized.rs
+++ b/src/test/parse-fail/unsized.rs
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// compile-flags: -Z parse-only
+
 // Test syntax checks for `type` keyword.
 
 struct S1 for type; //~ ERROR expected `where`, `{`, `(`, or `;` after struct name, found `for`