2021-02-21 10:15:43 -06:00
|
|
|
error: circular modules: $DIR/circular_modules_main.rs -> $DIR/circular_modules_hello.rs -> $DIR/circular_modules_main.rs
|
|
|
|
--> $DIR/circular_modules_hello.rs:4:1
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2021-02-21 10:15:43 -06:00
|
|
|
LL | mod circular_modules_main;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2021-02-21 10:15:43 -06:00
|
|
|
error[E0425]: cannot find function `hi_str` in module `circular_modules_main`
|
|
|
|
--> $DIR/circular_modules_hello.rs:7:43
|
2020-03-08 06:19:27 -05:00
|
|
|
|
|
2021-02-21 10:15:43 -06:00
|
|
|
LL | println!("{}", circular_modules_main::hi_str());
|
|
|
|
| ^^^^^^ not found in `circular_modules_main`
|
2020-03-08 06:19:27 -05:00
|
|
|
|
|
2022-05-02 21:07:47 -05:00
|
|
|
help: consider importing this function
|
2020-03-08 06:19:27 -05:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use hi_str;
|
2020-03-08 06:19:27 -05:00
|
|
|
|
|
2022-05-02 21:07:47 -05:00
|
|
|
help: if you import `hi_str`, refer to it directly
|
2022-04-23 18:41:36 -05:00
|
|
|
|
|
|
|
|
LL - println!("{}", circular_modules_main::hi_str());
|
|
|
|
LL + println!("{}", hi_str());
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-03-08 06:19:27 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2020-03-08 06:19:27 -05:00
|
|
|
For more information about this error, try `rustc --explain E0425`.
|