Closed
Description
I'm on Fedora 21, x86_64.
pub struct A<I: Iterator> {
iter: I,
buf: Vec<I::Item>,
}
impl<I: Iterator> Iterator for A<I> where
I: Iterator<Item=I::Item>
{
fn next(&mut self) -> Option<I::Item> {
None
}
}
fn main() {}
Output:
$ rustc test.rs
thread 'rustc' has overflowed its stack
Ungültiger Maschinenbefehl (Speicherabzug geschrieben)
(Sorry for the german 😆 )
You can also watch it fail with the playpen!