about summary refs log tree commit diff
path: root/src/test/compile-fail/issue-2149.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-11-16 19:22:48 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-11-21 12:44:51 -0800
commitef833d41014481acdfc19bfd50f27f662dba8a2b (patch)
tree33d854748f777d562f64c94d45b0b79f6ff1945c /src/test/compile-fail/issue-2149.rs
parent77ef4e717667ddbe925a81efc85994662183a445 (diff)
downloadrust-ef833d41014481acdfc19bfd50f27f662dba8a2b.tar.gz
rust-ef833d41014481acdfc19bfd50f27f662dba8a2b.zip
Introduce a T_err type for type errors
This allows more errors to be non-fatal, as per #1871.

I only went through and started changing span_fatal to span_err in
check.rs. There are probably more errors that could be made
non-fatal. So if you see derived type errors appearing from now on,
file a bug!

r=graydon

Closes #1871
Diffstat (limited to 'src/test/compile-fail/issue-2149.rs')
-rw-r--r--src/test/compile-fail/issue-2149.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/issue-2149.rs b/src/test/compile-fail/issue-2149.rs
index eb8da1519e8..b9ccfc66703 100644
--- a/src/test/compile-fail/issue-2149.rs
+++ b/src/test/compile-fail/issue-2149.rs
@@ -11,5 +11,5 @@ impl<A> ~[A]: vec_monad<A> {
    }
 }
 fn main() {
-    ["hi"].bind({|x| [x] });
+    ["hi"].bind({|x| [x] }); //~ ERROR attempted access of field `bind`
 }