rustc: More helpful error message when using a struct type like a function

Closes #6702
auto merge of #8502 : catamorphism/rust/issue-6702, r=pcwalton

r? anybody

Closes #6702