File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ fn it_works() {
1515```
1616
1717Tests "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.
1920
2021By passing the [ ` --test ` option] to ` rustc ` , the compiler will build the crate
2122in 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
304305[ `libtest` ] : ../../test/index.html
305306[ `main` function ] : ../../reference/crates-and-source-files.html#main-functions
306307[ `Result` ] : ../../std/result/index.html
308+ [ `Termination` ] : ../../std/process/trait.Termination.html
307309[ `test` cfg option ] : ../../reference/conditional-compilation.html#test
308310[ attribute-ignore ] : ../../reference/attributes/testing.html#the-ignore-attribute
309311[ attribute-should_panic ] : ../../reference/attributes/testing.html#the-should_panic-attribute
You can’t perform that action at this time.
0 commit comments