#![deny(unused_must_use)] fn it() -> impl ExactSizeIterator { let x: Box> = todo!(); x } fn main() { it(); //~^ ERROR unused implementer of `Iterator` that must be used }