From a613d5b9e15d25ba0c0dfd55caef65b50655d2b5 Mon Sep 17 00:00:00 2001 From: David Wood Date: Wed, 5 Oct 2022 12:22:46 +0100 Subject: [PATCH] diagnostic structs: derive on enum (#1477) --- 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 ba700482..3c8b0fd3 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_)