Bad signature for main
asserts
#3617
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Given an invalid definition of main, like
fn main(a: int) {}
, rustc complains, and suggests:Naively, I went and put
extern fn main() {}
or evenextern fn main(++args: ~[~str]) {}
in my code, including the spuriousextern
, and now rustc chokes on it:Neither of these messages should happen quite like that. :)
This is on commit b68d287 on the incoming branch.
The text was updated successfully, but these errors were encountered: