Skip to content

Commit e472bcf

Browse files
committed
docs(test2): Cover macro return type differences
1 parent 16317e7 commit e472bcf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/libtest2/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
//!
3636
//! Some of the notable differences:
3737
//!
38+
//! - `#[test]` does not support all `Termination` types as return values,
39+
//! only what [`IntoRunResult`] supports.
3840
//! - Output capture and `--no-capture`: simply not supported. The official
3941
//! `libtest` uses internal `std` functions to temporarily redirect output.
4042
//! `libtest` cannot use those, see also [libtest2#12](https://github.com/assert-rs/libtest2/issues/12)

0 commit comments

Comments
 (0)