Skip to content

Commit 7488558

Browse files
committed
Use doc, not test for fn item inner attr example
Using `test` causes a deny-by-default lint to trigger. See rust-lang/rust#79003 for more information.
1 parent a7de763 commit 7488558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/functions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ available while running tests.
295295

296296
```rust
297297
fn test_only() {
298-
#![test]
298+
#![doc("Example")]
299299
}
300300
```
301301

0 commit comments

Comments
 (0)