You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/rust-2024/rustdoc-doctests.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ In some situations it is not possible for rustdoc to combine examples in a singl
45
45
* Uses the [`compile_fail`][tags] language tag, which indicates that the example fails to compile.
46
46
* Uses the [`edition`][tags], which indicates the edition of the example.[^edition-tag]
47
47
* 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(...)]`).
49
49
* Defines a macro that uses `$crate`, because the `$crate` path will not work correctly.
50
50
51
51
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