mirror of https://github.com/rust-lang/rust
13 lines
393 B
Plaintext
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`.
|