From 7488558d53e6d3ba7f5d5c0221a7aca06327e29d Mon Sep 17 00:00:00 2001 From: "Havvy (Ryan Scheel)" Date: Sat, 21 Nov 2020 00:17:13 -0800 Subject: [PATCH] Use `doc`, not `test` for fn item inner attr example Using `test` causes a deny-by-default lint to trigger. See https://github.com/rust-lang/rust/pull/79003 for more information. --- src/items/functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items/functions.md b/src/items/functions.md index f76991cf0..083b88f5f 100644 --- a/src/items/functions.md +++ b/src/items/functions.md @@ -295,7 +295,7 @@ available while running tests. ```rust fn test_only() { - #![test] + #![doc("Example")] } ```