2018-11-30 09:41:26 +01:00
|
|
|
struct A<T, 'a> { //~ ERROR lifetime parameters must be declared
|
2018-11-25 12:41:38 -08:00
|
|
|
t: &'a T,
|
|
|
|
}
|
|
|
|
|
2018-11-30 09:41:26 +01:00
|
|
|
struct B<T, 'a, U> { //~ ERROR lifetime parameters must be declared
|
2018-11-25 12:41:38 -08:00
|
|
|
t: &'a T,
|
|
|
|
u: U,
|
|
|
|
}
|
|
|
|
|
2018-11-30 09:41:26 +01:00
|
|
|
struct C<T, U, 'a> { //~ ERROR lifetime parameters must be declared
|
2018-11-25 12:41:38 -08:00
|
|
|
t: &'a T,
|
|
|
|
u: U,
|
|
|
|
}
|
|
|
|
|
2018-11-30 09:41:26 +01:00
|
|
|
struct D<T, U, 'a, 'b, V, 'c> { //~ ERROR lifetime parameters must be declared
|
2018-11-26 08:32:47 -08:00
|
|
|
t: &'a T,
|
|
|
|
u: &'b U,
|
|
|
|
v: &'c V,
|
|
|
|
}
|
|
|
|
|
2018-11-25 12:41:38 -08:00
|
|
|
fn main() {}
|