12 lines
197 B
Rust
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(); }
|