blob: 31c2ca8a49171164b51c3ea0d654e6cb55c20be3 [file] [log] [blame] [edit]
//@ compile-flags: --crate-type=lib
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[current] check-fail
//@[next] check-pass
//@[next] compile-flags: -Znext-solver
use std::marker::PhantomData;
trait ParseTokens {
type Output;
}
impl<T: ParseTokens + ?Sized> ParseTokens for Box<T> {
type Output = ();
}
struct Element(<Box<Box<Element>> as ParseTokens>::Output);
//[current]~^ ERROR: overflow
impl ParseTokens for Element {
//[current]~^ ERROR: overflow
type Output = ();
}