From b60c3e2c1185e32ea830780c53c548e0a047bf59 Mon Sep 17 00:00:00 2001 From: York Xiang Date: Thu, 30 Apr 2015 23:41:02 +0800 Subject: [PATCH 1/2] Closes #15919 --- src/test/compile-fail/issue-15919.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/compile-fail/issue-15919.rs diff --git a/src/test/compile-fail/issue-15919.rs b/src/test/compile-fail/issue-15919.rs new file mode 100644 index 0000000000000..1fd1d44d0a791 --- /dev/null +++ b/src/test/compile-fail/issue-15919.rs @@ -0,0 +1,14 @@ +// Copyright 2015 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +fn main() { + let x = [0usize; 9223372036854775808]; // We don't officially support 128-bit architecture +//~^ error: the type `[usize; 9223372036854775808]` is too big for the current architecture +} From 4c8b8139496138f81d1d69932c7b3af09bd8148f Mon Sep 17 00:00:00 2001 From: York Xiang Date: Thu, 30 Apr 2015 23:41:02 +0800 Subject: [PATCH 2/2] Closes #15919 --- src/test/compile-fail/issue-15919.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/compile-fail/issue-15919.rs b/src/test/compile-fail/issue-15919.rs index 1fd1d44d0a791..1461cf2423888 100644 --- a/src/test/compile-fail/issue-15919.rs +++ b/src/test/compile-fail/issue-15919.rs @@ -8,7 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// error-pattern: the type `[i32; 9223372036854775808]` is too big for the current architecture + fn main() { - let x = [0usize; 9223372036854775808]; // We don't officially support 128-bit architecture -//~^ error: the type `[usize; 9223372036854775808]` is too big for the current architecture + let _x = [0; 9223372036854775808]; }