-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.
Description
use std::iter;
fn silly<I: Iterator<Item=()>>(it: I) {
silly(it.chain(iter::empty()))
}
fn main() {
println!("Start");
silly(iter::empty());
println!("Done");
}This code causes compiler to be stuck wasting CPU cycles, instead of printing some kind of recursion limit error.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.