diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2018-05-28 19:42:11 -0700 | 
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2018-06-26 07:53:30 -0700 | 
| commit | 057715557b51af125847da6d19b2e016283c5ae7 (patch) | |
| tree | dfe0cc5a807ac7ed47bb77893f1c69198be825f6 /src/test/compile-fail/non-constant-in-const-path.rs | |
| parent | 764232cb2a8407c72b9fea68835e686240e30ef3 (diff) | |
| download | rust-057715557b51af125847da6d19b2e016283c5ae7.tar.gz rust-057715557b51af125847da6d19b2e016283c5ae7.zip | |
migrate codebase to `..=` inclusive range patterns
These were stabilized in March 2018's #47813, and are the Preferred Way to Do It going forward (q.v. #51043).
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.rs | 2 | 
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 }; } | 
