From b5a782750592c855c4a57821d3704089af5eaf2b Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Mon, 3 Aug 2015 17:25:56 -0400 Subject: [PATCH] delete some old tests These are for syntaxes that haven't existed for a long time. --- src/test/compile-fail/array-old-syntax-2.rs | 15 --------------- src/test/parse-fail/array-old-syntax-1.rs | 17 ----------------- src/test/parse-fail/trait-keyword.rs | 15 --------------- 3 files changed, 47 deletions(-) delete mode 100644 src/test/compile-fail/array-old-syntax-2.rs delete mode 100644 src/test/parse-fail/array-old-syntax-1.rs delete mode 100644 src/test/parse-fail/trait-keyword.rs 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 or the MIT license -// , 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 or the MIT license -// , 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 or the MIT license -// , 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() {}