rust/tests/ui/parser/circular_modules_main.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
843 B
Plaintext
Raw Normal View History

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
|
LL | mod circular_modules_main;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-10-20 15:36:17 -05: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
|
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
|
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`.