Skip to content

Commit 52f8b22

Browse files
committed
Add test for resolution errors
1 parent 03f75b6 commit 52f8b22

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/test/compile-fail/unresolved-import.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use foo::bar; //~ ERROR unresolved import. maybe a missing
11+
use foo::bar; //~ ERROR unresolved import. maybe a missing `extern mod foo`?
1212
//~^ ERROR failed to resolve import
13+
use x = bar::baz; //~ ERROR unresolved import: could not find `baz` in `bar`
14+
//~^ ERROR failed to resolve import
15+
16+
mod bar {
17+
struct bar;
18+
}

0 commit comments

Comments
 (0)