blob: f970d395b2cf2b35385c6889ecad8af999e15a34 [file] [log] [blame]
#![feature(ascii_char)] // random lib feature
#![feature(box_patterns)] // random lang feature
// picked arbitrary unstable features, just need a random lib and lang feature, ideally ones that
// won't be stabilized any time soon so we don't have to update this test
fn main() {
for s in quix("foo/bar") {
print!("{s}");
}
println!();
}
// need a latebound var to trigger the incremental compilation ICE
fn quix(foo: &str) -> impl Iterator<Item = &'_ str> + '_ {
foo.split('/')
}