Skip to content

Commit

Permalink
diagnostic structs: derive on enum (#1477)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtwco authored Oct 5, 2022
1 parent d3ce60f commit 57a38ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagnostics/diagnostic-structs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_)
Expand Down

0 comments on commit 57a38ad

Please sign in to comment.