Closed
Description
Probably not minimal example:
#[derive(Clone, Debug)]
struct Foo;
pub trait Bar {
fn shrink(&self) -> Box<Iterator<Item=Self>>;
}
impl Bar for Foo {
fn shrink(&self) -> Box<Iterator<Item=Foo>> {
Box::new(None.into_iter())
}
}
fn main() {
}
Version: rustc 1.3.0-nightly (6d71ce536 2015-07-06)
This code was working on the previous nightly---I think the 2015-07-06 nightly introduced this regression. In particular, this very badly breaks any non-trivial use of QuickCheck (which has the same signature as shrink
above).