1 error[E0597]: `f1` does not live long enough
2 --> $DIR/dst-bad-coerce3.rs:16:33
4 LL | let f2: &Fat<[isize; 3]> = &f1; //~ ERROR `f1` does not live long enough
5 | ^^ borrowed value does not live long enough
8 | - borrowed value only lives until here
10 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 13:8...
11 --> $DIR/dst-bad-coerce3.rs:13:8
16 error[E0597]: `f1` does not live long enough
17 --> $DIR/dst-bad-coerce3.rs:21:26
19 LL | let f2: &Fat<Foo> = &f1; //~ ERROR `f1` does not live long enough
20 | ^^ borrowed value does not live long enough
23 | - borrowed value only lives until here
25 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 13:8...
26 --> $DIR/dst-bad-coerce3.rs:13:8
31 error[E0597]: `f1` does not live long enough
32 --> $DIR/dst-bad-coerce3.rs:26:31
34 LL | let f2: &([isize; 3],) = &f1; //~ ERROR `f1` does not live long enough
35 | ^^ borrowed value does not live long enough
38 | - borrowed value only lives until here
40 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 13:8...
41 --> $DIR/dst-bad-coerce3.rs:13:8
46 error[E0597]: `f1` does not live long enough
47 --> $DIR/dst-bad-coerce3.rs:31:24
49 LL | let f2: &(Foo,) = &f1; //~ ERROR `f1` does not live long enough
50 | ^^ borrowed value does not live long enough
51 LL | let f3: &'a (Bar,) = f2;
53 | - borrowed value only lives until here
55 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 13:8...
56 --> $DIR/dst-bad-coerce3.rs:13:8
61 error: aborting due to 4 previous errors
63 For more information about this error, try `rustc --explain E0597`.