rust/tests/ui/suggestions/suggest-move-lifetimes.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
409 B
Rust
Raw Normal View History

2018-11-30 08:41:26 +00:00
struct A<T, 'a> { //~ ERROR lifetime parameters must be declared
t: &'a T,
}
2018-11-30 08:41:26 +00:00
struct B<T, 'a, U> { //~ ERROR lifetime parameters must be declared
t: &'a T,
u: U,
}
2018-11-30 08:41:26 +00:00
struct C<T, U, 'a> { //~ ERROR lifetime parameters must be declared
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
t: &'a T,
u: &'b U,
v: &'c V,
}
fn main() {}