You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[`match_single_binding`] Add curlies for more cases to fix suggestion causes error
Fixesrust-lang#9575
changelog: [`match_single_binding`]: Add curlies for scrutinees with side effects for more cases
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: