librustc: Check if return type is void not zero-sized for fn->closure wrapper.

Fixes #18539.