diagnostic structs: derive on enum (#1477)
This commit is contained in:
parent
7722f6dd66
commit
5a1a2e341d
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ tcx.sess.emit_err(FieldAlreadyDeclared {
|
|||
following attributes:
|
||||
|
||||
- `#[diag(slug, code = "...")]`
|
||||
- _Applied to struct._
|
||||
- _Applied to struct or enum variant._
|
||||
- _Mandatory_
|
||||
- Defines the text and error code to be associated with the diagnostic.
|
||||
- Slug (_Mandatory_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue