about summary refs log tree commit diff
path: root/src/test/compile-fail/huge-array-simple.rs
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2014-10-15 20:03:44 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2014-10-15 20:09:09 +0300
commit61ab2ea08ae669711c5d9c0c069da2d0a8606639 (patch)
tree2d64a04def48dcfc320d42db5e03ad186aa94821 /src/test/compile-fail/huge-array-simple.rs
parent1ee345a87b05a4972e100f148819d2020c55381f (diff)
downloadrust-61ab2ea08ae669711c5d9c0c069da2d0a8606639.tar.gz
rust-61ab2ea08ae669711c5d9c0c069da2d0a8606639.zip
response for review comments
Diffstat (limited to 'src/test/compile-fail/huge-array-simple.rs')
-rw-r--r--src/test/compile-fail/huge-array-simple.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/compile-fail/huge-array-simple.rs b/src/test/compile-fail/huge-array-simple.rs
new file mode 100644
index 00000000000..badaa4b922f
--- /dev/null
+++ b/src/test/compile-fail/huge-array-simple.rs
@@ -0,0 +1,15 @@
+// Copyright 2014 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 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+// error-pattern: too big for the current
+
+fn main() {
+   let fat : [u8, ..1<<61] = [0, ..1<<61];
+}