rust/tests/crashes/118590.rs

12 lines
175 B
Rust
Raw Normal View History

2024-04-15 16:01:02 -05:00
//@ known-bug: #118590
fn main() {
recurse(std::iter::empty::<()>())
}
fn recurse(nums: impl Iterator) {
if true { return }
recurse(nums.skip(42).peekable())
}