1 warning: unnecessary lifetime parameter `'a`
2 --> $DIR/unsatified-item-lifetime-bound.rs:4:12
4 LL | type Y<'a: 'static>;
7 = help: you can use the `'static` lifetime directly, in place of `'a`
9 error[E0478]: lifetime bound not satisfied
10 --> $DIR/unsatified-item-lifetime-bound.rs:13:8
12 LL | f: <T as X>::Y<'a>,
15 note: lifetime parameter instantiated with the lifetime `'a` as defined on the struct at 12:10
16 --> $DIR/unsatified-item-lifetime-bound.rs:12:10
18 LL | struct B<'a, T: for<'r> X<Y<'r> = &'r ()>> {
20 = note: but lifetime parameter must outlive the static lifetime
22 error[E0478]: lifetime bound not satisfied
23 --> $DIR/unsatified-item-lifetime-bound.rs:18:8
25 LL | f: <T as X>::Y<'a>,
28 note: lifetime parameter instantiated with the lifetime `'a` as defined on the struct at 17:10
29 --> $DIR/unsatified-item-lifetime-bound.rs:17:10
31 LL | struct C<'a, T: X> {
33 = note: but lifetime parameter must outlive the static lifetime
35 error[E0478]: lifetime bound not satisfied
36 --> $DIR/unsatified-item-lifetime-bound.rs:23:8
38 LL | f: <() as X>::Y<'a>,
41 note: lifetime parameter instantiated with the lifetime `'a` as defined on the struct at 22:10
42 --> $DIR/unsatified-item-lifetime-bound.rs:22:10
46 = note: but lifetime parameter must outlive the static lifetime
48 error: aborting due to 3 previous errors; 1 warning emitted
50 For more information about this error, try `rustc --explain E0478`.