about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2013-05-14 00:42:10 -0400
committerCorey Richardson <corey@octayn.net>2013-05-14 18:51:37 -0400
commit52f8b22d4f304abd6227f1476396b0a3a94e241f (patch)
treec8065259a34a890ad3f115231e7b851fb8b23bd6
parent03f75b629a5d1d8e0a5916abdef4499f0c7c61d6 (diff)
downloadrust-52f8b22d4f304abd6227f1476396b0a3a94e241f.tar.gz
rust-52f8b22d4f304abd6227f1476396b0a3a94e241f.zip
Add test for resolution errors
-rw-r--r--src/test/compile-fail/unresolved-import.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/compile-fail/unresolved-import.rs b/src/test/compile-fail/unresolved-import.rs
index 1bd3efeadcb..9c5ff311b0d 100644
--- a/src/test/compile-fail/unresolved-import.rs
+++ b/src/test/compile-fail/unresolved-import.rs
@@ -8,5 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use foo::bar; //~ ERROR unresolved import. maybe a missing
+use foo::bar; //~ ERROR unresolved import. maybe a missing `extern mod foo`?
               //~^ ERROR failed to resolve import
+use x = bar::baz; //~ ERROR unresolved import: could not find `baz` in `bar`
+                  //~^ ERROR failed to resolve import
+
+mod bar {
+    struct bar;
+}