diff options
| author | bors <bors@rust-lang.org> | 2015-08-05 23:53:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-08-05 23:53:48 +0000 |
| commit | 4f33e43cbceb60ec85bb5140bd5470965ea92d16 (patch) | |
| tree | d8979cd7743b62071ed28713321e4f6d4f85d99c /src | |
| parent | a0eb7a2c6da31b44718188002ac0cec12a3c86ee (diff) | |
| parent | b5a782750592c855c4a57821d3704089af5eaf2b (diff) | |
| download | rust-4f33e43cbceb60ec85bb5140bd5470965ea92d16.tar.gz rust-4f33e43cbceb60ec85bb5140bd5470965ea92d16.zip | |
Auto merge of #27505 - steveklabnik:exterminate_exterminate, r=brson
These are for syntaxes that haven't existed for a long time.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/compile-fail/array-old-syntax-2.rs | 15 | ||||
| -rw-r--r-- | src/test/parse-fail/array-old-syntax-1.rs | 17 | ||||
| -rw-r--r-- | src/test/parse-fail/trait-keyword.rs | 15 |
3 files changed, 0 insertions, 47 deletions
diff --git a/src/test/compile-fail/array-old-syntax-2.rs b/src/test/compile-fail/array-old-syntax-2.rs deleted file mode 100644 index 99ff3ae29f1..00000000000 --- a/src/test/compile-fail/array-old-syntax-2.rs +++ /dev/null @@ -1,15 +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. - -// Test that the old repeating array syntax gives an error. - -fn main() { - let _ = [0, ..3]; //~ ERROR -} diff --git a/src/test/parse-fail/array-old-syntax-1.rs b/src/test/parse-fail/array-old-syntax-1.rs deleted file mode 100644 index 78dcf2e2e2e..00000000000 --- a/src/test/parse-fail/array-old-syntax-1.rs +++ /dev/null @@ -1,17 +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. - -// compile-flags: -Z parse-only - -// Test that the old fixed length array syntax is a parsing error. - -fn main() { - let _x: [isize, ..3] = [0, 1, 2]; //~ ERROR -} diff --git a/src/test/parse-fail/trait-keyword.rs b/src/test/parse-fail/trait-keyword.rs deleted file mode 100644 index faaa0525f9d..00000000000 --- a/src/test/parse-fail/trait-keyword.rs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2012 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. - -// compile-flags: -Z parse-only - -iface foo { } //~ ERROR iface - -fn main() {} |
