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 397a8f2cf7
commit a613d5b9e1
1 changed files with 1 additions and 1 deletions

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