mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
14 lines
262 B
Rust
14 lines
262 B
Rust
//@ revisions: edition2015 edition2021
|
|
|
|
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
|
|
}
|