mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
23 lines
312 B
Rust
23 lines
312 B
Rust
// 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() {}
|