mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-11 01:17:39 +00:00
12 lines
222 B
Rust
12 lines
222 B
Rust
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() {}
|