blob: 7c36998dd4d3b0113fc02492be0b5ce3f1708b7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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() {}
|