]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-16596.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / issues / issue-16596.rs
1 // check-pass
2 #![allow(dead_code)]
3
4 trait 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
17     fn next(&mut self) -> Option<()> {
18         unimplemented!()
19     }
20 }
21
22 fn main() {}