Forbid coercing unsafe functions to closures

Closes #9582
auto merge of #11605 : alexcrichton/rust/issue-9582, r=brson

Closes #9582