Is it possible to show the output of a doc test in the docs themselves?

Viewed 336

A simple example:

/// ```
/// println!("hello");
/// ```

And what I see when I run cargo doc:

1

It would be useful to show the output. Well, obviously not in this example.

1 Answers

This is currently not possible, see this issue calling for the support of cargo test's --nocapture flag for doctests.

Related