libsyntax: Explicit error message for sugared doc comments.

Display an explicit message about items missing after sugared doc
comment attributes. References #2789.