Skip to content

Commit

Permalink
Use doc, not test for fn item inner attr example
Browse files Browse the repository at this point in the history
Using `test` causes a deny-by-default lint to trigger. See
rust-lang/rust#79003 for more information.
  • Loading branch information
Havvy committed Nov 21, 2020
1 parent a7de763 commit 7488558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ available while running tests.

```rust
fn test_only() {
#![test]
#![doc("Example")]
}
```

Expand Down

0 comments on commit 7488558

Please sign in to comment.