one_assert 0.2.0

One assert! to replace them all
Documentation
1
2
3
4
5
6
7
8
9
10
11
error[E0308]: `match` arms have incompatible types
 --> tests/fail/expr/match.rs:4:14
  |
2 |       one_assert::assert!(match 0 {
  |  _________________________-
3 | |         1 => true,
  | |              ---- this is found to be of type `bool`
4 | |         x => x + 1,
  | |              ^^^^^ expected `bool`, found integer
5 | |     });
  | |_____- `match` arms have incompatible types