Closed
Description
fn main(+_args: ~[~str]) {}
results in:
Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"), function init, file /Users/tchevalier/rust/src/llvm/lib/VMCore/Instructions.cpp, line 280.
I know modes are going away, but in general it's probably worth testing that doing various weird things to main
's signature yields a proper error.