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/attributes/testing.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Test functions must be free, monomorphic functions that take no arguments, and t
31
31
> Note: The test mode is enabled by passing the `--test` argument to `rustc`
32
32
> or using `cargo test`.
33
33
34
-
r[attributes.testing.success]
34
+
r[attributes.testing.test.success]
35
35
The test harness calls the returned value's [`report`] method, and classifies the test as passed or failed depending on whether the resulting [`ExitCode`] represents successful termination.
36
36
In particular:
37
37
* Tests that return `()` pass as long as they terminate and do not panic.
0 commit comments