File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ fn it_works() {
15
15
```
16
16
17
17
Tests "pass" if they return without an error. They "fail" if they [ panic] , or
18
- return a [ ` Result ` ] with an error.
18
+ return a type such as [ ` Result ` ] that implements the [ ` Termination ` ] trait
19
+ with a non-zero value.
19
20
20
21
By passing the [ ` --test ` option] to ` rustc ` , the compiler will build the crate
21
22
in a special mode to construct an executable that will run the tests in the
@@ -304,6 +305,7 @@ Experimental support for using custom test harnesses is available on the
304
305
[ `libtest` ] : ../../test/index.html
305
306
[ `main` function ] : ../../reference/crates-and-source-files.html#main-functions
306
307
[ `Result` ] : ../../std/result/index.html
308
+ [ `Termination` ] : ../../std/process/trait.Termination.html
307
309
[ `test` cfg option ] : ../../reference/conditional-compilation.html#test
308
310
[ attribute-ignore ] : ../../reference/attributes/testing.html#the-ignore-attribute
309
311
[ attribute-should_panic ] : ../../reference/attributes/testing.html#the-should_panic-attribute
You can’t perform that action at this time.
0 commit comments