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

Closes #6702