Forbid type parameters in inner statics

Closes #9186
auto merge of #10189 : alexcrichton/rust/inner-statics, r=cmr

Closes #9186