mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00
12 lines
222 B
Rust
12 lines
222 B
Rust
pub mod foo {
|
|
pub mod bar {
|
|
pub fn do_the_thing() -> usize {
|
|
42
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
println!("Hello, {}!", crate::bar::do_the_thing); //~ ERROR failed to resolve: unresolved import
|
|
}
|