1 error[E0597]: `x` does not live long enough
2 --> $DIR/generic-slice.rs:15:9
4 LL | impl<'a, T: 'static> Generic<'a, T> {
5 | -- lifetime `'a` defined here
10 | borrowed value does not live long enough
11 | using this value as a constant requires that `x` is borrowed for `'a`
14 | - `x` dropped here while still borrowed
16 error[E0597]: `x` does not live long enough
17 --> $DIR/generic-slice.rs:27:5
22 | borrowed value does not live long enough
23 | using this value as a static requires that `x` is borrowed for `'static`
26 | - `x` dropped here while still borrowed
28 error: aborting due to 2 previous errors
30 For more information about this error, try `rustc --explain E0597`.