From ffde86e2f14e70e9518cdc056a86447bc80b0423 Mon Sep 17 00:00:00 2001 From: David Wood Date: Wed, 5 Oct 2022 10:02:26 +0100 Subject: [PATCH] diagnostic structs: derive on enum Signed-off-by: David Wood --- src/diagnostics/diagnostic-structs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diagnostics/diagnostic-structs.md b/src/diagnostics/diagnostic-structs.md index ba7004823..3c8b0fd3d 100644 --- a/src/diagnostics/diagnostic-structs.md +++ b/src/diagnostics/diagnostic-structs.md @@ -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_)