]> git.lizzy.rs Git - rust.git/commitdiff
Test for #876
authorTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 1 Sep 2011 19:27:49 +0000 (12:27 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 1 Sep 2011 20:12:59 +0000 (13:12 -0700)
This is the test case for #876. Xfailed for now.

src/test/compile-fail/tag-that-dare-not-speak-its-name.rs [new file with mode: 0644]

diff --git a/src/test/compile-fail/tag-that-dare-not-speak-its-name.rs b/src/test/compile-fail/tag-that-dare-not-speak-its-name.rs
new file mode 100644 (file)
index 0000000..0e87863
--- /dev/null
@@ -0,0 +1,10 @@
+// -*- rust -*-
+// xfail-test
+// error-pattern:mismatch
+use std;
+import std::vec::*;
+
+fn main() {
+    let y;
+    let x : char = last(y);
+}