about summary refs log tree commit diff
path: root/src/test/compile-fail/removed-syntax-mut-vec-ty.rs
diff options
context:
space:
mode:
authorBenjamin Herr <ben@0x539.de>2013-10-03 11:53:46 +0200
committerBenjamin Herr <ben@0x539.de>2013-10-04 07:09:28 +0200
commitfa411500f969be6131aee62e3885460f90c150bb (patch)
tree53582eebea0903a3b36837dafb468ac53be60990 /src/test/compile-fail/removed-syntax-mut-vec-ty.rs
parent4bae639d86bd4c63040874dd5c305983832162c0 (diff)
downloadrust-fa411500f969be6131aee62e3885460f90c150bb.tar.gz
rust-fa411500f969be6131aee62e3885460f90c150bb.zip
Remove specific errors for very old obsolete syntax
Replaces existing tests for removed obsolete-syntax errors with tests
for the resulting regular errors, adds a test for each of the removed
parser errors to make sure that obsolete forms don't start working
again, removes some obsolete/superfluous tests that were now failing.

Deletes some amount of dead code in the parser, also includes some small
changes to parser error messages to accomodate new tests.
Diffstat (limited to 'src/test/compile-fail/removed-syntax-mut-vec-ty.rs')
-rw-r--r--src/test/compile-fail/removed-syntax-mut-vec-ty.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/compile-fail/removed-syntax-mut-vec-ty.rs b/src/test/compile-fail/removed-syntax-mut-vec-ty.rs
new file mode 100644
index 00000000000..4c0be562f92
--- /dev/null
+++ b/src/test/compile-fail/removed-syntax-mut-vec-ty.rs
@@ -0,0 +1,13 @@
+// Copyright 2013 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.
+
+type v = [mut int];
+    //~^  ERROR found `mut` in ident position
+    //~^^ ERROR expected `]` but found `int`