1 error[E0597]: `y` does not live long enough
2 --> $DIR/pattern_substs_on_tuple_struct.rs:7:19
4 LL | let foo = Foo(&y);
5 | ^^ borrowed value does not live long enough
8 | - `y` dropped here while still borrowed
10 = note: borrowed value must be valid for the static lifetime...
12 error[E0597]: `y` does not live long enough
13 --> $DIR/pattern_substs_on_tuple_struct.rs:14:19
15 LL | let foo = Foo(&y);
16 | ^^ borrowed value does not live long enough
19 | - `y` dropped here while still borrowed
21 = note: borrowed value must be valid for the static lifetime...
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0597`.