rust/tests/ui/entry-point/imported_main_from_extern_c...

13 lines
393 B
Plaintext

error[E0580]: `main` function has wrong type
--> $DIR/auxiliary/bad_main_functions.rs:1:1
|
LL | pub fn boilerplate(x: u8) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect number of function parameters
|
= note: expected signature `fn()`
found signature `fn(u8)`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0580`.