use std::time::Duration; use systemd_duration::{error, stdtime::parse}; fn fail_parse() -> Result { parse("3x")?; unreachable!(); } fn main() { let td = fail_parse(); assert!(td.is_err()); }