// Dropck shouldn't hit a recursion limit from checking `S` since it has // no free regions or type parameters. // Codegen however, has to error for the infinitely many `drop_in_place` // functions it has been asked to create. // build-fail // normalize-stderr-test: ".nll/" -> "/" // compile-flags: -Zmir-opt-level=0 struct S { t: T, s: Box>, } fn f(x: S) {} fn main() { // Force instantiation. f as fn(_); }