diagnostic structs: derive on enum (#1477)
This commit is contained in:
parent
397a8f2cf7
commit
a613d5b9e1
|
|
@ -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…
Reference in New Issue