// ruleid: causal-triangulations.rust.no-unwrap-expect-in-doctests
/// let value = Some(1_u32).unwrap();

// ruleid: causal-triangulations.rust.no-unwrap-expect-in-doctests
//! let value = Ok::<u32, &'static str>(1).expect("doctest should not panic");

// ok: causal-triangulations.rust.no-unwrap-expect-in-doctests
/// # fn main() -> causal_triangulations::CdtResult<()> { Ok(()) }

// ok: causal-triangulations.rust.no-unwrap-expect-in-doctests
/// Do not use `.unwrap()` in public examples.

// ok: causal-triangulations.rust.no-unwrap-expect-in-doctests
/// Prefer `?` to `.expect("message")` in public examples.

// ruleid: causal-triangulations.rust.no-box-dyn-error-in-doctests
/// # Ok::<(), Box<dyn std::error::Error>>(())

// ruleid: causal-triangulations.rust.no-box-dyn-error-in-doctests
//! # fn main() -> anyhow::Error { anyhow::anyhow!("erased") }

// ok: causal-triangulations.rust.no-box-dyn-error-in-doctests
/// # fn main() -> causal_triangulations::CdtResult<()> { Ok(()) }
