rust/src/test/ui/export2.rs
2018-12-25 21:08:33 -07:00

12 lines
197 B
Rust

mod foo {
pub fn x() { bar::x(); } //~ ERROR failed to resolve: use of undeclared type or module `bar`
}
mod bar {
fn x() { println!("x"); }
pub fn y() { }
}
fn main() { foo::x(); }