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 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() {}