// check-pass fn test() -> impl Iterator { Box::new(0..) as Box> } fn main() {}