]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/static-vec-repeat-not-constant.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / static-vec-repeat-not-constant.rs
index ff84ed5bf0cd499d72000663407b3c3d0c994faa..7cb7615526a8e01830e89df932f07e8a68469707 100644 (file)
@@ -8,9 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn foo() -> int { 23 }
+fn foo() -> isize { 23 }
 
-static a: [int; 2] = [foo(); 2];
+static a: [isize; 2] = [foo(); 2];
 //~^ ERROR: function calls in constants are limited to struct and enum constructors
 
 fn main() {}