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
type Connection = fn@(~[u8]);
type ConnectionFactory = fn@() -> option<Connection>;
fn main() {
let mock_connection: Connection = |data| { };
let mock_connection_factory: ConnectionFactory = || {
some(mock_connection)
};
}
rustc: /home/brian/dev/rust/src/llvm/lib/VMCore/Instructions.cpp:280: void llvm::CallInst::init(llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"' failed.
The text was updated successfully, but these errors were encountered:
The argument mode for one of the function types ends up being infer and the other expl, so type_of creates two different LLVM nominal types for their option types.
The text was updated successfully, but these errors were encountered: