Is playing a goalkeeper out on pitch an illegal formation? I thought it was just the other way around.

Obviously the lack of wingers make it a moot point in this case.