Skip to content

Commit 7a56de6

Browse files
ehusstraviscross
authored andcommitted
Add attributes.testing.test.stdlib
1 parent df602be commit 7a56de6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/attributes/testing.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ Only the first instance of `test` on an function is honored. Subsequent `test` a
4242
4343
<!-- TODO: This is a minor lie. Currently rustc warns that duplicates are ignored, but it then generates multiple test entries with the same name. I would vote for rejecting this in the future. -->
4444
45+
r[attributes.testing.test.stdlib]
46+
The `test` attribute is exported from the standard library prelude as [`std::prelude::v1::test`].
47+
4548
r[attributes.testing.test.enabled]
4649
These functions are only compiled when in test mode.
4750

0 commit comments

Comments
 (0)