Skip to content

Commit a613d5b

Browse files
authored
diagnostic structs: derive on enum (rust-lang#1477)
1 parent 397a8f2 commit a613d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagnostics/diagnostic-structs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ tcx.sess.emit_err(FieldAlreadyDeclared {
145145
following attributes:
146146

147147
- `#[diag(slug, code = "...")]`
148-
- _Applied to struct._
148+
- _Applied to struct or enum variant._
149149
- _Mandatory_
150150
- Defines the text and error code to be associated with the diagnostic.
151151
- Slug (_Mandatory_)

0 commit comments

Comments
 (0)