2020-01-05 00:17:46 +00:00
|
|
|
error[E0580]: `main` function has wrong type
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/extern-main-fn.rs:1:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2020-09-01 17:28:11 -04:00
|
|
|
LL | extern "C" fn main() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ expected "Rust" fn, found "C" fn
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2023-09-17 20:13:05 +02:00
|
|
|
= note: expected signature `fn()`
|
|
|
|
found signature `extern "C" fn()`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0580`.
|