about summary refs log tree commit diff
path: root/src/test/compile-fail/non-constant-expr-for-vec-repeat.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-01-08 18:40:04 +0000
committerbors <bors@rust-lang.org>2015-01-08 18:40:04 +0000
commit00b112c45a604fa6f4b59af2a40c9deeadfdb7c6 (patch)
treeb7ebe956eeb308942c79bb1cd8ca1c4fc016fe83 /src/test/compile-fail/non-constant-expr-for-vec-repeat.rs
parenta8a210b57ef6b2f5f66b8798c80acfde70c9d2e7 (diff)
parent7541f82faba6b2839b5e640605d7caab6cc6ec4f (diff)
downloadrust-00b112c45a604fa6f4b59af2a40c9deeadfdb7c6.tar.gz
rust-00b112c45a604fa6f4b59af2a40c9deeadfdb7c6.zip
auto merge of #20760 : alexcrichton/rust/rollup, r=alexcrichton
Diffstat (limited to 'src/test/compile-fail/non-constant-expr-for-vec-repeat.rs')
-rw-r--r--src/test/compile-fail/non-constant-expr-for-vec-repeat.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/non-constant-expr-for-vec-repeat.rs b/src/test/compile-fail/non-constant-expr-for-vec-repeat.rs
index 2e063e5237c..26528543b43 100644
--- a/src/test/compile-fail/non-constant-expr-for-vec-repeat.rs
+++ b/src/test/compile-fail/non-constant-expr-for-vec-repeat.rs
@@ -11,7 +11,7 @@
 // Check that non constant exprs fail for vector repeat syntax
 
 fn main() {
-    fn bar(n: uint) {
+    fn bar(n: usize) {
         let _x = [0; n]; //~ ERROR expected constant integer for repeat count, found variable
     }
 }