Closed
Description
Consider this code:
struct FunStruct {
/// fun having errors
}
It is obviously wrong, doc comments have to be before items. The error rustc gives one is very weird however:
<anon>:3:1: 3:2 error: expected ident
<anon>:3 }
^
Is rust python?
Note this only seems to happen for structs. functions and traits display smarter error messages.
cc @nikomatsakis bc I've heard on irc he wants to be notified on weird errors.
Metadata
Metadata
Assignees
Labels
No labels