diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2014-10-15 20:03:44 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2014-10-15 20:09:09 +0300 |
| commit | 61ab2ea08ae669711c5d9c0c069da2d0a8606639 (patch) | |
| tree | 2d64a04def48dcfc320d42db5e03ad186aa94821 /src/test/compile-fail/huge-array-simple.rs | |
| parent | 1ee345a87b05a4972e100f148819d2020c55381f (diff) | |
| download | rust-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.rs | 15 |
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]; +} |
