rust/src/test/compile-fail/export-import.rs

20 lines
180 B
Rust
Raw Normal View History

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