summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/suggest-move-lifetimes.rs
blob: 6b26f1214368ca8f104ed7e2db9dbbaa965fcc7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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() {}