//! A small tree with one function with good coverage: a fast-to-run successful
//! case for cargo-mutants.
pubfnfactorial(n:u32)->u32{letmut a =1;for i in2..=n {
a *= i;}
a
}#[cfg(test)]modtest{usesuper::*;#[test]fntest_factorial(){println!("factorial({}) = {}",6,factorial(6));// This line is here so we can see it in --nocapture
assert_eq!(factorial(6),720);}}