1 error[E0597]: `f1` does not live long enough
2 --> $DIR/dst-bad-coerce3.rs:16:32
5 | -- lifetime `'a` defined here
7 LL | let f2: &Fat<[isize; 3]> = &f1;
8 | ^^^ borrowed value does not live long enough
9 LL | let f3: &'a Fat<[isize]> = f2;
10 | ---------------- type annotation requires that `f1` is borrowed for `'a`
13 | - `f1` dropped here while still borrowed
15 error[E0597]: `f1` does not live long enough
16 --> $DIR/dst-bad-coerce3.rs:21:25
19 | -- lifetime `'a` defined here
21 LL | let f2: &Fat<Foo> = &f1;
22 | ^^^ borrowed value does not live long enough
23 LL | let f3: &'a Fat<dyn Bar> = f2;
24 | ---------------- type annotation requires that `f1` is borrowed for `'a`
27 | - `f1` dropped here while still borrowed
29 error[E0597]: `f1` does not live long enough
30 --> $DIR/dst-bad-coerce3.rs:26:30
33 | -- lifetime `'a` defined here
35 LL | let f2: &([isize; 3],) = &f1;
36 | ^^^ borrowed value does not live long enough
37 LL | let f3: &'a ([isize],) = f2;
38 | -------------- type annotation requires that `f1` is borrowed for `'a`
41 | - `f1` dropped here while still borrowed
43 error[E0597]: `f1` does not live long enough
44 --> $DIR/dst-bad-coerce3.rs:31:23
47 | -- lifetime `'a` defined here
49 LL | let f2: &(Foo,) = &f1;
50 | ^^^ borrowed value does not live long enough
51 LL | let f3: &'a (dyn Bar,) = f2;
52 | -------------- type annotation requires that `f1` is borrowed for `'a`
54 | - `f1` dropped here while still borrowed
56 error: aborting due to 4 previous errors
58 For more information about this error, try `rustc --explain E0597`.