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]
10
10
## The ` test ` attribute
11
11
12
12
r[ attributes.testing.test.intro]
13
-
14
- r[ attributes.testing.test.enabled]
15
- These functions are only compiled when in test mode.
16
13
The * ` test ` [ attribute] [ attributes ] * marks a function to be executed as a test.
17
14
18
15
> [ !EXAMPLE]
@@ -45,6 +42,9 @@ Only the first instance of `test` on an function is honored. Subsequent `test` a
45
42
46
43
<! -- 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 . - ->
47
44
45
+ r [attributes . testing. test. enabled]
46
+ These functions are only compiled when in test mode .
47
+
48
48
> [! NOTE ]
49
49
> The test mode is enabled by passing the `-- test ` argument to `rustc ` or using `cargo test `.
50
50
You can’t perform that action at this time.
0 commit comments