]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/import-glob-circular.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / imports / import-glob-circular.rs
1 mod circ1 {
2     pub use circ2::f2;
3     pub fn f1() { println!("f1"); }
4     pub fn common() -> usize { return 0; }
5 }
6
7 mod circ2 {
8     pub use circ1::f1;
9     pub fn f2() { println!("f2"); }
10     pub fn common() -> usize { return 1; }
11 }
12
13 mod test {
14     use circ1::*;
15
16     fn test() { f1066(); } //~ ERROR cannot find function `f1066` in this scope
17 }
18
19 fn main() {}