diff options
| author | christopherdumas <christopherdumas@me.com> | 2015-09-11 11:53:45 -0700 |
|---|---|---|
| committer | christopherdumas <christopherdumas@me.com> | 2015-09-11 11:53:45 -0700 |
| commit | 175a6421b24fa376f23e00b118d2489379b92797 (patch) | |
| tree | 0bb3fbefedd5debb3bb4f2f93739442781d63ec8 | |
| parent | 0276068255257e17fbb203eb36aee533b60c4cab (diff) | |
| download | rust-175a6421b24fa376f23e00b118d2489379b92797.tar.gz rust-175a6421b24fa376f23e00b118d2489379b92797.zip | |
Fixed test
| -rw-r--r-- | src/test/compile-fail/non-constant-in-const-path.rs | 4 |
1 files changed, 3 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 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 }; } |
