Skip to content

Commit 971856d

Browse files
committed
Auto merge of #29089 - kickinbahk:edit-testing-docs, r=steveklabnik
When going through the docs, it is not clear that binary files cannot be tested. Additionally, it is hard to find the proper structure of a Rust crate and it took me several hours of looking through the docs to find the crates and modules section. I think we can link to it from here and it will be beneficial to those who are coming to the language.
2 parents c7a58b5 + cf926f1 commit 971856d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/trpl/testing.md

+3
Original file line numberDiff line numberDiff line change
@@ -504,3 +504,6 @@ you add more examples.
504504

505505
We haven’t covered all of the details with writing documentation tests. For more,
506506
please see the [Documentation chapter](documentation.html)
507+
508+
One final note: Tests *cannot* be run on a binary file. To see more on file arrangement see the [Crates and Modules](crates-and-modules.html) section.
509+

0 commit comments

Comments
 (0)