2019-11-04 00:00:00 +00:00
|
|
|
// check-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2015-02-12 10:29:52 -05:00
|
|
|
trait MatrixRow { fn dummy(&self) { }}
|
2014-10-16 21:40:21 +02:00
|
|
|
|
|
|
|
struct Mat;
|
|
|
|
|
|
|
|
impl<'a> MatrixRow for &'a Mat {}
|
|
|
|
|
|
|
|
struct Rows<M: MatrixRow> {
|
|
|
|
mat: M,
|
|
|
|
}
|
|
|
|
|
2015-01-02 10:25:54 -05:00
|
|
|
impl<'a> Iterator for Rows<&'a Mat> {
|
|
|
|
type Item = ();
|
|
|
|
|
2014-10-16 21:40:21 +02:00
|
|
|
fn next(&mut self) -> Option<()> {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|