mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
22 lines
409 B
Rust
22 lines
409 B
Rust
struct A<T, 'a> { //~ ERROR lifetime parameters must be declared
|
|
t: &'a T,
|
|
}
|
|
|
|
struct B<T, 'a, U> { //~ ERROR lifetime parameters must be declared
|
|
t: &'a T,
|
|
u: U,
|
|
}
|
|
|
|
struct C<T, U, 'a> { //~ ERROR lifetime parameters must be declared
|
|
t: &'a T,
|
|
u: U,
|
|
}
|
|
|
|
struct D<T, U, 'a, 'b, V, 'c> { //~ ERROR lifetime parameters must be declared
|
|
t: &'a T,
|
|
u: &'b U,
|
|
v: &'c V,
|
|
}
|
|
|
|
fn main() {}
|