From 175a6421b24fa376f23e00b118d2489379b92797 Mon Sep 17 00:00:00 2001 From: christopherdumas Date: Fri, 11 Sep 2015 11:53:45 -0700 Subject: [PATCH] Fixed test --- src/test/compile-fail/non-constant-in-const-path.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 00572237c0e..124a2ffc185 100644 --- a/src/test/compile-fail/non-constant-in-const-path.rs +++ b/src/test/compile-fail/non-constant-in-const-path.rs @@ -11,6 +11,8 @@ fn main() { let x = 0; match 1 { - 0 ... x => {} //~ ERROR non-constant path in constant expr + 0 ... x => {} + //~^ ERROR non-constant path in constant expr + //~| ERROR paths in constants may only refer to constants or functions }; }