-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error message for start function confusing #9575
Comments
huonw
added a commit
to huonw/rust
that referenced
this issue
Jan 31, 2014
Triage: now fixed, closed when #11966 lands. |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Oct 20, 2022
[`match_single_binding`] Add curlies for more cases to fix suggestion causes error Fixes rust-lang#9575 changelog: [`match_single_binding`]: Add curlies for scrutinees with side effects for more cases
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you had an old start function like:
You this message:
error: start function expects type:
extern "Rust" fn(int, **u8) -> int: incorrect number of function parameters
However, if actually change the signature to
extern "Rust"
fn start(argc: int, argv: **u8) -> int` then you get the this message:error: start function expects type:
extern "Rust" fn(int, **u8) -> int: expected impure fn but found extern fn
It took me a bit to figure out that I am not supposed to add
extern "Rust"
myself.cc @brson
The text was updated successfully, but these errors were encountered: