Skip to content

Commit 53ac97c

Browse files
committed
Use an attribute example that actually prevents combining
1 parent 2dc4b85 commit 53ac97c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust-2024/rustdoc-doctests.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ In some situations it is not possible for rustdoc to combine examples in a singl
4545
* Uses the [`compile_fail`][tags] language tag, which indicates that the example fails to compile.
4646
* Uses the [`edition`][tags], which indicates the edition of the example.[^edition-tag]
4747
* Uses global attributes like the [`global_allocator`] attribute, which could potentially interfere with other tests.
48-
* Defines any crate-wide attributes (like `#![deny(unused)]`).
48+
* Defines any crate-wide attributes (like `#![feature(...)]`).
4949
* Defines a macro that uses `$crate`, because the `$crate` path will not work correctly.
5050

5151
However, rustdoc is not able to automatically determine *all* situations where an example cannot be combined with other examples. In these situations, you can add the `standalone` language tag to indicate that the example should be built as a separate executable.

0 commit comments

Comments
 (0)