1- warning: unnecessary lifetime parameter `'a`
2- --> $DIR/unsatisfied-item-lifetime-bound.rs:4:12
3- |
4- LL | type Y<'a: 'static>;
5- | ^^
6- |
7- = help: you can use the `'static` lifetime directly, in place of `'a`
8- note: the lint level is defined here
9- --> $DIR/unsatisfied-item-lifetime-bound.rs:1:9
10- |
11- LL | #![warn(unused_lifetimes)]
12- | ^^^^^^^^^^^^^^^^
13-
141error[E0478]: lifetime bound not satisfied
15- --> $DIR/unsatisfied-item-lifetime-bound.rs:9 :18
2+ --> $DIR/unsatisfied-item-lifetime-bound.rs:6 :18
163 |
174LL | type Y<'a: 'static>;
185 | ------------------- definition of `Y` from trait
@@ -21,7 +8,7 @@ LL | type Y<'a> = &'a ();
218 | ^^^^^^
229 |
2310note: lifetime parameter instantiated with the lifetime `'a` as defined here
24- --> $DIR/unsatisfied-item-lifetime-bound.rs:9 :12
11+ --> $DIR/unsatisfied-item-lifetime-bound.rs:6 :12
2512 |
2613LL | type Y<'a> = &'a ();
2714 | ^^
@@ -32,44 +19,44 @@ LL | type Y<'a> = &'a () where 'a: 'static;
3219 | +++++++++++++++++
3320
3421error[E0478]: lifetime bound not satisfied
35- --> $DIR/unsatisfied-item-lifetime-bound.rs:14 :8
22+ --> $DIR/unsatisfied-item-lifetime-bound.rs:11 :8
3623 |
3724LL | f: <T as X>::Y<'a>,
3825 | ^^^^^^^^^^^^^^^
3926 |
4027note: lifetime parameter instantiated with the lifetime `'a` as defined here
41- --> $DIR/unsatisfied-item-lifetime-bound.rs:13 :10
28+ --> $DIR/unsatisfied-item-lifetime-bound.rs:10 :10
4229 |
4330LL | struct B<'a, T: for<'r> X<Y<'r> = &'r ()>> {
4431 | ^^
4532 = note: but lifetime parameter must outlive the static lifetime
4633
4734error[E0478]: lifetime bound not satisfied
48- --> $DIR/unsatisfied-item-lifetime-bound.rs:19 :8
35+ --> $DIR/unsatisfied-item-lifetime-bound.rs:16 :8
4936 |
5037LL | f: <T as X>::Y<'a>,
5138 | ^^^^^^^^^^^^^^^
5239 |
5340note: lifetime parameter instantiated with the lifetime `'a` as defined here
54- --> $DIR/unsatisfied-item-lifetime-bound.rs:18 :10
41+ --> $DIR/unsatisfied-item-lifetime-bound.rs:15 :10
5542 |
5643LL | struct C<'a, T: X> {
5744 | ^^
5845 = note: but lifetime parameter must outlive the static lifetime
5946
6047error[E0478]: lifetime bound not satisfied
61- --> $DIR/unsatisfied-item-lifetime-bound.rs:24 :8
48+ --> $DIR/unsatisfied-item-lifetime-bound.rs:21 :8
6249 |
6350LL | f: <() as X>::Y<'a>,
6451 | ^^^^^^^^^^^^^^^^
6552 |
6653note: lifetime parameter instantiated with the lifetime `'a` as defined here
67- --> $DIR/unsatisfied-item-lifetime-bound.rs:23 :10
54+ --> $DIR/unsatisfied-item-lifetime-bound.rs:20 :10
6855 |
6956LL | struct D<'a> {
7057 | ^^
7158 = note: but lifetime parameter must outlive the static lifetime
7259
73- error: aborting due to 4 previous errors; 1 warning emitted
60+ error: aborting due to 4 previous errors
7461
7562For more information about this error, try `rustc --explain E0478`.
0 commit comments