]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-16596.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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() {}