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