Files
rust/tests/ui/codegen/normalization-overflow/recursion-issue-118590.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
231 B
Rust
Raw Normal View History

//@ build-fail
2024-04-15 23:01:02 +02:00
fn main() {
recurse(std::iter::empty::<()>())
}
fn recurse(nums: impl Iterator) {
if true { return }
recurse(nums.skip(42).peekable())
//~^ ERROR: reached the recursion limit while instantiating
2024-04-15 23:01:02 +02:00
}