1
1
error: lifetime may not live long enough
2
- --> $DIR/implied_lifetime_wf_check3.rs:14:5
3
- |
4
- LL | fn test_lifetime_param_test<'a>()
5
- | -- lifetime `'a` defined here
6
- ...
7
- LL | test_lifetime_param::assert_static::<'a>()
8
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
9
-
10
- error: lifetime may not live long enough
11
- --> $DIR/implied_lifetime_wf_check3.rs:29:5
2
+ --> $DIR/implied_lifetime_wf_check3.rs:28:5
12
3
|
13
4
LL | fn test_higher_kinded_lifetime_param_test<'a>()
14
5
| -- lifetime `'a` defined here
@@ -17,27 +8,12 @@ LL | test_higher_kinded_lifetime_param::assert_static::<'a>()
17
8
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
18
9
19
10
error: lifetime may not live long enough
20
- --> $DIR/implied_lifetime_wf_check3.rs:36 :9
11
+ --> $DIR/implied_lifetime_wf_check3.rs:35 :9
21
12
|
22
13
LL | fn test<'a>() {
23
14
| -- lifetime `'a` defined here
24
15
LL | assert_static::<'a>()
25
16
| ^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
26
17
27
- error[E0310]: the parameter type `A` may not live long enough
28
- --> $DIR/implied_lifetime_wf_check3.rs:52:5
29
- |
30
- LL | test_type_param::assert_static::<A>()
31
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
- | |
33
- | the parameter type `A` must be valid for the static lifetime...
34
- | ...so that the type `A` will meet its required lifetime bounds
35
- |
36
- help: consider adding an explicit lifetime bound
37
- |
38
- LL | fn test_type_param_test<A: 'static>()
39
- | +++++++++
40
-
41
- error: aborting due to 4 previous errors
18
+ error: aborting due to 2 previous errors
42
19
43
- For more information about this error, try `rustc --explain E0310`.
0 commit comments