Skip to content

Commit 043c2d9

Browse files
committed
Add test for resolution errors
1 parent 74625e1 commit 043c2d9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@
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 `foo`
14+
15+
mod bar {
16+
struct bar;
17+
}

0 commit comments

Comments
 (0)