1 // check-pass 2 #![allow(dead_code)] 3 dummy(&self)4trait MatrixRow { fn dummy(&self) { }} 5 6 struct Mat; 7 8 impl<'a> MatrixRow for &'a Mat {} 9 10 struct Rows<M: MatrixRow> { 11 mat: M, 12 } 13 14 impl<'a> Iterator for Rows<&'a Mat> { 15 type Item = (); 16 next(&mut self) -> Option<()>17 fn next(&mut self) -> Option<()> { 18 unimplemented!() 19 } 20 } 21 main()22fn main() {} 23