diff --git a/src/attributes/diagnostics.md b/src/attributes/diagnostics.md index 9357a5f26..6a972d322 100644 --- a/src/attributes/diagnostics.md +++ b/src/attributes/diagnostics.md @@ -124,12 +124,13 @@ The `deprecated` attribute has several forms: deprecation and preferred alternatives. The `deprecated` attribute may be applied to any [item], [trait item], [enum -variant], [struct field], or [external block item]. It cannot be applied to [trait -implementation items]. When applied to an item containing other items, such as -a [module] or [implementation], all child items inherit the deprecation attribute. - Here is an example: @@ -270,6 +271,7 @@ When used on a function in a trait implementation, the attribute does nothing. [implementation]: ../items/implementations.md [item]: ../items.md [let statement]: ../statements.md#let-statements +[macro definition]: ../macros-by-example.md [module]: ../items/modules.md [rustc book]: ../../rustc/lints/index.html [struct field]: ../items/structs.md