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