2022-01-31 21:11:23 -06:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/supertrait-lifetime-bound.rs:10:5
|
2022-01-31 21:11:23 -06:00
|
|
|
|
|
|
|
|
LL | fn test2<'a>() {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
...
|
|
|
|
LL | test1::<dyn Bar<&'a u32>, _>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-01-31 21:11:23 -06:00
|
|
|
|