about summary refs log tree commit diff
path: root/src/test/parse-fail/pat-range-bad-dots.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/parse-fail/pat-range-bad-dots.rs')
-rw-r--r--src/test/parse-fail/pat-range-bad-dots.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/parse-fail/pat-range-bad-dots.rs b/src/test/parse-fail/pat-range-bad-dots.rs
index c52fb8c9b67..d2afd26ea9a 100644
--- a/src/test/parse-fail/pat-range-bad-dots.rs
+++ b/src/test/parse-fail/pat-range-bad-dots.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
+
 pub fn main() {
     match 22 {
         0 .. 3 => {} //~ ERROR expected one of `...`, `=>`, `if`, or `|`, found `..`