3 // Regression test for https://github.com/rust-lang/rust/issues/73431.
13 impl<T: Zero> Zero for Wrapper<T> {
14 const ZERO: Self = Wrapper(T::ZERO);
17 #[derive(Debug, PartialEq, Eq)]
18 pub struct Wrapper<T>(T);
20 fn is_zero(x: Wrapper<usize>) -> bool {
28 let _ = is_zero(Wrapper(42));