fn prints_and_returns_10(a: i32) -> i32 { println!("I got the value {}", a); 10 } #[cfg(test)] mod tests { use super::*; #[test] fn this_test_will_pass() { let value = prints_and_returns_10(4); assert_eq!(10, value); } #[test] #[ignore] fn this_test_will_fail() { let value = prints_and_returns_10(9); assert_eq!(5, value); } } fn main() { prints_and_returns_10(10); }