mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
17 lines
181 B
Rust
17 lines
181 B
Rust
mod moon {
|
|
pub fn foo() {}
|
|
}
|
|
|
|
mod earth {
|
|
pub fn foo() {}
|
|
}
|
|
|
|
mod collider {
|
|
pub use moon::*;
|
|
pub use earth::*;
|
|
}
|
|
|
|
fn main() {
|
|
collider::foo(); //~ ERROR E0659
|
|
}
|