2023-09-17 20:13:05 +02:00
|
|
|
error[E0308]: lang item `start` function has wrong type
|
2023-01-15 05:47:24 +09:00
|
|
|
--> $DIR/issue-92157.rs:11:1
|
|
|
|
|
|
|
|
|
LL | fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8) -> isize {
|
2023-09-17 20:13:05 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect number of function parameters
|
2023-01-15 05:47:24 +09:00
|
|
|
|
|
2023-09-17 20:13:05 +02:00
|
|
|
= note: expected signature `fn(fn() -> T, isize, *const *const u8, u8) -> _`
|
|
|
|
found signature `fn(fn() -> T, isize, *const *const u8) -> _`
|
2023-01-15 05:47:24 +09:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2023-09-17 20:13:05 +02:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|