about summary refs log tree commit diff
path: root/src/test/compile-fail/non-constant-in-const-path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/non-constant-in-const-path.rs')
-rw-r--r--src/test/compile-fail/non-constant-in-const-path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/non-constant-in-const-path.rs b/src/test/compile-fail/non-constant-in-const-path.rs
index fe88ab4e117..1aae25105a8 100644
--- a/src/test/compile-fail/non-constant-in-const-path.rs
+++ b/src/test/compile-fail/non-constant-in-const-path.rs
@@ -11,7 +11,7 @@
 fn main() {
     let x = 0;
     match 1 {
-        0 ... x => {}
+        0 ..= x => {}
         //~^ ERROR runtime values cannot be referenced in patterns
     };
 }