// `S` is infinitely recursing so it's not possible to generate a finite // drop impl (ignoring polymorphization). // // Dropck should therefore detect that this is the case and eagerly error. struct S { t: T, s: Box>, } fn f(x: S) {} //~ ERROR overflow while adding drop-check rules for S fn main() { // Force instantiation. f as fn(_); }