mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
20 lines
360 B
Rust
20 lines
360 B
Rust
mod circ1 {
|
|
pub use circ2::f2;
|
|
pub fn f1() { println!("f1"); }
|
|
pub fn common() -> usize { return 0; }
|
|
}
|
|
|
|
mod circ2 {
|
|
pub use circ1::f1;
|
|
pub fn f2() { println!("f2"); }
|
|
pub fn common() -> usize { return 1; }
|
|
}
|
|
|
|
mod test {
|
|
use circ1::*;
|
|
|
|
fn test() { f1066(); } //~ ERROR cannot find function `f1066` in this scope
|
|
}
|
|
|
|
fn main() {}
|