]> git.lizzy.rs Git - rust.git/commitdiff
Add test for resolution errors
authorCorey Richardson <corey@octayn.net>
Tue, 14 May 2013 04:42:10 +0000 (00:42 -0400)
committerCorey Richardson <corey@octayn.net>
Tue, 14 May 2013 22:51:37 +0000 (18:51 -0400)
src/test/compile-fail/unresolved-import.rs

index 1bd3efeadcbba2687e97fa5c24aebac62172fe70..9c5ff311b0d03e84a14120ecab8506d071250d6a 100644 (file)
@@ -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;
+}