Skip to content

Commit e9d411e

Browse files
committed
---
yaml --- r: 168525 b: refs/heads/batch c: 13392d1 h: refs/heads/master i: 168523: d7901e0 v: v3
1 parent d4a60d4 commit e9d411e

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 7e2b9ea235c2bf4cc9a7575c8e0f70950208b8f2
32+
refs/heads/batch: 13392d19cae2b03883d531a47d660b985b98833b
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
// Test that the old fixed length array syntax is a parsing error.
12+
13+
fn main() {
14+
let _x: [int, ..3] = [0i, 1, 2]; //~ ERROR
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
// Test that the old repeating array syntax gives an error.
12+
13+
fn main() {
14+
let _ = [0i, ..3]; //~ ERROR
15+
}

branches/batch/src/test/run-pass/range.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ pub fn main() {
4141
let _ = 0u..4+4-3;
4242
let _ = 0..foo();
4343

44+
let _ = ..42u;
45+
4446
// Test we can use two different types with a common supertype.
4547
let x = &42i;
4648
{

0 commit comments

Comments
 (0)