rust/src/test/ui/issues/issue-16596.rs

23 lines
349 B
Rust
Raw Normal View History

// build-pass (FIXME(62277): could be check-pass?)
#![allow(dead_code)]
trait MatrixRow { fn dummy(&self) { }}
2014-10-16 19:40:21 +00:00
struct Mat;
impl<'a> MatrixRow for &'a Mat {}
struct Rows<M: MatrixRow> {
mat: M,
}
2015-01-02 15:25:54 +00:00
impl<'a> Iterator for Rows<&'a Mat> {
type Item = ();
2014-10-16 19:40:21 +00:00
fn next(&mut self) -> Option<()> {
unimplemented!()
}
}
fn main() {}