2021-04-25 12:09:35 -05:00
|
|
|
error[E0601]: `main` function not found in crate `imported_main_const_forbidden`
|
2022-01-20 18:15:39 -06:00
|
|
|
--> $DIR/imported_main_const_forbidden.rs:6:22
|
2021-04-25 12:09:35 -05:00
|
|
|
|
|
2022-01-20 18:15:39 -06:00
|
|
|
LL | use foo::BAR as main;
|
|
|
|
| ---------------- ^ consider adding a `main` function to `$DIR/imported_main_const_forbidden.rs`
|
|
|
|
| |
|
|
|
|
| non-function item at `crate::main` is found
|
2021-04-25 12:09:35 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0601`.
|