/* Appellation: default Contrib: FL03 */ #![cfg(test)] pub fn multiply(x: A, y: B) -> C where A: std::ops::Mul, { x * y } #[test] fn compiles() { assert!(multiply(2, 3) > 0); assert_eq!(multiply(2, 3), 6); assert_ne!(multiply(2, 3), 7); }