]> git.lizzy.rs Git - rust.git/blob - src/test/ui/entry-point/imported_main_conflict.stderr
Add primary marker on codegen unit to take charge of main_wrapper for non-local cases.
[rust.git] / src / test / ui / entry-point / imported_main_conflict.stderr
1 error[E0659]: `main` is ambiguous (glob import vs glob import in the same module)
2    |
3 note: `main` could refer to the function imported here
4   --> $DIR/imported_main_conflict.rs:6:5
5    |
6 LL | use m1::*;
7    |     ^^^^^
8    = help: consider adding an explicit import of `main` to disambiguate
9 note: `main` could also refer to the function imported here
10   --> $DIR/imported_main_conflict.rs:7:5
11    |
12 LL | use m2::*;
13    |     ^^^^^
14    = help: consider adding an explicit import of `main` to disambiguate
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0659`.