Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (15 sloc) 349 Bytes
// build-pass (FIXME(62277): could be check-pass?)
#![allow(dead_code)]
trait MatrixRow { fn dummy(&self) { }}
struct Mat;
impl<'a> MatrixRow for &'a Mat {}
struct Rows<M: MatrixRow> {
mat: M,
}
impl<'a> Iterator for Rows<&'a Mat> {
type Item = ();
fn next(&mut self) -> Option<()> {
unimplemented!()
}
}
fn main() {}
You can’t perform that action at this time.