Currently is it not really possible to write actual doc tests because you can't import the thing your documenting.
i.e.
/// foo does foo things.
///
/// # Example
/// ```
/// use <what crate name?>::foo;
///
/// assert_eq!(foo(3u8), vec![92f64]);
/// ```
pub fn foo(x: u8) -> Vec<f64> {
...
}
Currently is it not really possible to write actual doc tests because you can't import the thing your documenting.
i.e.