diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2014-12-20 15:20:51 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2014-12-20 15:23:29 +1300 |
| commit | 2e86929a4a5a36f3993e577b4582ba70d84bbb40 (patch) | |
| tree | 7b3e8049edae74dde7a870a7173afed6f9fc744e /src/test/compile-fail/trailing-comma-array-repeat.rs | |
| parent | cbe9fb45bc705a89f23b434c686544d490923596 (diff) | |
| download | rust-2e86929a4a5a36f3993e577b4582ba70d84bbb40.tar.gz rust-2e86929a4a5a36f3993e577b4582ba70d84bbb40.zip | |
Allow use of `[_ ; n]` syntax for fixed length and repeating arrays.
This does NOT break any existing programs because the `[_, ..n]` syntax is also supported.
Diffstat (limited to 'src/test/compile-fail/trailing-comma-array-repeat.rs')
| -rw-r--r-- | src/test/compile-fail/trailing-comma-array-repeat.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/compile-fail/trailing-comma-array-repeat.rs b/src/test/compile-fail/trailing-comma-array-repeat.rs deleted file mode 100644 index dadd6571583..00000000000 --- a/src/test/compile-fail/trailing-comma-array-repeat.rs +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -fn main() { - let [_, ..,] = [(), ()]; //~ ERROR unexpected token: `]` -} |
