File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,6 @@ r[attributes.testing.test]
1010## The ` test ` attribute
1111
1212r[ attributes.testing.test.intro]
13-
14- r[ attributes.testing.test.enabled]
15- These functions are only compiled when in test mode.
1613The * ` test ` [ attribute] [ attributes ] * marks a function to be executed as a test.
1714
1815> [ !EXAMPLE]
@@ -45,6 +42,9 @@ Only the first instance of `test` on an function is honored. Subsequent `test` a
4542
4643<! -- 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 . - ->
4744
45+ r [attributes . testing. test. enabled]
46+ These functions are only compiled when in test mode .
47+
4848> [! NOTE ]
4949> The test mode is enabled by passing the `-- test ` argument to `rustc ` or using `cargo test `.
5050
You can’t perform that action at this time.
0 commit comments