We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e23ae72 commit d70d76bCopy full SHA for d70d76b
src/doc/rustdoc/src/write-documentation/the-doc-attribute.md
@@ -144,10 +144,10 @@ it will not.
144
### `test(attr(...))`
145
146
This form of the `doc` attribute allows you to add arbitrary attributes to all your doctests. For
147
-example, if you want your doctests to fail if they produce any warnings, you could add this:
+example, if you want your doctests to fail if they have dead code, you could add this:
148
149
```rust,no_run
150
-#![doc(test(attr(deny(warnings))))]
+#![doc(test(attr(deny(dead_code))))]
151
```
152
153
## At the item level
0 commit comments