about summary refs log tree commit diff
path: root/src/test/run-pass/nullable-pointer-iotareduction.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2014-12-20 15:20:51 +1300
committerNick Cameron <ncameron@mozilla.com>2014-12-20 15:23:29 +1300
commit2e86929a4a5a36f3993e577b4582ba70d84bbb40 (patch)
tree7b3e8049edae74dde7a870a7173afed6f9fc744e /src/test/run-pass/nullable-pointer-iotareduction.rs
parentcbe9fb45bc705a89f23b434c686544d490923596 (diff)
Allow use of `[_ ; n]` syntax for fixed length and repeating arrays.
This does NOT break any existing programs because the `[_, ..n]` syntax is also supported.
Diffstat (limited to 'src/test/run-pass/nullable-pointer-iotareduction.rs')
-rw-r--r--src/test/run-pass/nullable-pointer-iotareduction.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/nullable-pointer-iotareduction.rs b/src/test/run-pass/nullable-pointer-iotareduction.rs
index da1ad094df6..2660de619e9 100644
--- a/src/test/run-pass/nullable-pointer-iotareduction.rs
+++ b/src/test/run-pass/nullable-pointer-iotareduction.rs
@@ -20,7 +20,7 @@ use std::{option, mem};
 // trying to get assert failure messages that at least identify which case
 // failed.
 
-enum E<T> { Thing(int, T), Nothing((), ((), ()), [i8, ..0]) }
+enum E<T> { Thing(int, T), Nothing((), ((), ()), [i8; 0]) }
 impl<T> E<T> {
     fn is_none(&self) -> bool {
         match *self {
@@ -54,7 +54,7 @@ macro_rules! check_fancy {
         check_fancy!($e: $T, |ptr| assert!(*ptr == $e));
     }};
     ($e:expr: $T:ty, |$v:ident| $chk:expr) => {{
-        assert!(E::Nothing::<$T>((), ((), ()), [23i8, ..0]).is_none());
+        assert!(E::Nothing::<$T>((), ((), ()), [23i8; 0]).is_none());
         let e = $e;
         let t_ = E::Thing::<$T>(23, e);
         match t_.get_ref() {