|
1 | 1 | warning: unnecessary lifetime parameter `'a` |
2 | | - --> $DIR/unsatified-item-lifetime-bound.rs:2:12 |
| 2 | + --> $DIR/unsatisfied-item-lifetime-bound.rs:4:12 |
3 | 3 | | |
4 | 4 | LL | type Y<'a: 'static>; |
5 | 5 | | ^^ |
6 | 6 | | |
7 | | - = note: `#[warn(named_static_lifetimes)]` on by default |
8 | 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 | + | ^^^^^^^^^^^^^^^^ |
9 | 13 |
|
10 | 14 | error[E0478]: lifetime bound not satisfied |
11 | | - --> $DIR/unsatified-item-lifetime-bound.rs:11:8 |
| 15 | + --> $DIR/unsatisfied-item-lifetime-bound.rs:13:8 |
12 | 16 | | |
13 | 17 | LL | f: <T as X>::Y<'a>, |
14 | 18 | | ^^^^^^^^^^^^^^^ |
15 | 19 | | |
16 | 20 | note: lifetime parameter instantiated with the lifetime `'a` as defined here |
17 | | - --> $DIR/unsatified-item-lifetime-bound.rs:10:10 |
| 21 | + --> $DIR/unsatisfied-item-lifetime-bound.rs:12:10 |
18 | 22 | | |
19 | 23 | LL | struct B<'a, T: for<'r> X<Y<'r> = &'r ()>> { |
20 | 24 | | ^^ |
21 | 25 | = note: but lifetime parameter must outlive the static lifetime |
22 | 26 |
|
23 | 27 | error[E0478]: lifetime bound not satisfied |
24 | | - --> $DIR/unsatified-item-lifetime-bound.rs:16:8 |
| 28 | + --> $DIR/unsatisfied-item-lifetime-bound.rs:18:8 |
25 | 29 | | |
26 | 30 | LL | f: <T as X>::Y<'a>, |
27 | 31 | | ^^^^^^^^^^^^^^^ |
28 | 32 | | |
29 | 33 | note: lifetime parameter instantiated with the lifetime `'a` as defined here |
30 | | - --> $DIR/unsatified-item-lifetime-bound.rs:15:10 |
| 34 | + --> $DIR/unsatisfied-item-lifetime-bound.rs:17:10 |
31 | 35 | | |
32 | 36 | LL | struct C<'a, T: X> { |
33 | 37 | | ^^ |
34 | 38 | = note: but lifetime parameter must outlive the static lifetime |
35 | 39 |
|
36 | 40 | error[E0478]: lifetime bound not satisfied |
37 | | - --> $DIR/unsatified-item-lifetime-bound.rs:21:8 |
| 41 | + --> $DIR/unsatisfied-item-lifetime-bound.rs:23:8 |
38 | 42 | | |
39 | 43 | LL | f: <() as X>::Y<'a>, |
40 | 44 | | ^^^^^^^^^^^^^^^^ |
41 | 45 | | |
42 | 46 | note: lifetime parameter instantiated with the lifetime `'a` as defined here |
43 | | - --> $DIR/unsatified-item-lifetime-bound.rs:20:10 |
| 47 | + --> $DIR/unsatisfied-item-lifetime-bound.rs:22:10 |
44 | 48 | | |
45 | 49 | LL | struct D<'a> { |
46 | 50 | | ^^ |
|
0 commit comments