blob: 7c36998dd4d3b0113fc02492be0b5ce3f1708b7a [file] [log] [blame]
trait Tailed<'a>: 'a {
type Tail: Tailed<'a>;
}
struct List<'a, T: Tailed<'a>> {
//~^ ERROR overflow computing implied lifetime bounds for `List`
next: Box<List<'a, T::Tail>>,
node: &'a T,
}
fn main() {}