rust/src/test/ui/export2.rs
2020-09-01 18:38:14 +01:00

12 lines
198 B
Rust

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