rust/src/test/compile-fail/export-import.rs
Marijn Haverbeke e9c12ab1d0 Rewrite comp/middle/resolve.rs
* Cleans up the algorithm
 * Move first pass to walk (second still folds)
 * Support part of a type/value namespace split
   (crate metadata and module indices still need to be taught about this)
 * Remove a few blatant inefficiencies (import tables being recreated for
   every lookup, most importantly)
2011-05-11 12:32:37 +02:00

20 lines
198 B
Rust

// xfail-boot
// xfail-stage0
// error-pattern: unresolved import
import m.unexported;
mod m {
export exported;
fn exported() {
}
fn unexported() {
}
}
fn main() {
unexported();
}