How to display the reason for a FAILED documentation test?

When cargo test runs documentation tests where assert_eq! gets a different result from what expected, cargo test just outputs ... FAILED for that test.
Is it possible to show the result and expectation when running a doctest? (constantly moving between a documentation test to and a 'normal' test seems cumbersome)

1 Like