1 2 3 4 5 6 7 8 9 10 11
//@check-pass #![warn(clippy::len_zero)] pub struct S1; pub struct S2; impl S1 { pub fn len(&self) -> S2 { S2 } }