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