diagnostic structs: derive on enum (#1477)

This commit is contained in:
David Wood 2022-10-05 12:22:46 +01:00 committed by GitHub
parent 7722f6dd66
commit 5a1a2e341d

View file

@ -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_)