Closed
Description
fn test() -> Box<Iterator<Item = (), Item = ()>> {
Box::new(None.into_iter())
}
It seems rather surprising that the above code actually compiles. Making it an error wouldn't be backwards compatible but a warning would be nice (the same happens with impl Future<Item = (), Item = ()>
which is where I got burnt, thinking I had specified the Error
type).