diagnostic structs: derive on enum (#1477)
This commit is contained in:
parent
d3ce60f3d6
commit
57a38adb6e
|
|
@ -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