11error: 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
123 |
134LL | fn test_higher_kinded_lifetime_param_test<'a>()
145 | -- lifetime `'a` defined here
@@ -17,27 +8,12 @@ LL | test_higher_kinded_lifetime_param::assert_static::<'a>()
178 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
189
1910error: lifetime may not live long enough
20- --> $DIR/implied_lifetime_wf_check3.rs:36 :9
11+ --> $DIR/implied_lifetime_wf_check3.rs:35 :9
2112 |
2213LL | fn test<'a>() {
2314 | -- lifetime `'a` defined here
2415LL | assert_static::<'a>()
2516 | ^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
2617
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
4219
43- For more information about this error, try `rustc --explain E0310`.
0 commit comments