]> git.lizzy.rs Git - rust.git/blob - src/test/ui/entry-point/imported_main_const_forbidden.stderr
Rollup merge of #92959 - asquared31415:test-non-fn-help, r=estebank
[rust.git] / src / test / ui / entry-point / imported_main_const_forbidden.stderr
1 error[E0601]: `main` function not found in crate `imported_main_const_forbidden`
2   --> $DIR/imported_main_const_forbidden.rs:1:1
3    |
4 LL | / #![feature(imported_main)]
5 LL | |
6 LL | | pub mod foo {
7 LL | |     pub const BAR: usize = 42;
8 LL | | }
9 LL | |
10 LL | | use foo::BAR as main;
11    | |_____----------------^ consider adding a `main` function to `$DIR/imported_main_const_forbidden.rs`
12    |       |
13    |       non-function item at `crate::main` is found
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0601`.