mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
21 lines
284 B
Rust
21 lines
284 B
Rust
//! Checks that functions from different modules are accessible via their fully-qualified paths.
|
|
|
|
//@ run-pass
|
|
|
|
mod foo {
|
|
pub fn x() -> isize {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
mod bar {
|
|
pub fn y() -> isize {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
pub fn main() {
|
|
foo::x();
|
|
bar::y();
|
|
}
|