//@ run-pass #![allow(unused_must_use)] fn bug() -> impl Iterator { std::iter::empty() } fn ok() -> Box> { Box::new(std::iter::empty()) } fn main() { for _item in ok::() {} for _item in bug::() {} }