Tests for issue 5997 failure and success conditions.

Closes #5997.
Add span to error for missing type params on enums.
Change error for out of scope type params to be more helpful.
Catch forward declarations in default type params at AST conversion.
auto merge of #13525 : Ryman/rust/issue_5997, r=alexcrichton

Closes #5997.