2022-05-01 16:51:02 -05:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/issue-54779-anon-static-lifetime.rs:32:24
|
2022-05-01 16:51:02 -05:00
|
|
|
|
|
|
|
|
LL | cx: &dyn DebugContext,
|
|
|
|
| - let's call the lifetime of this reference `'1`
|
|
|
|
...
|
|
|
|
LL | bar.debug_with(cx);
|
|
|
|
| ^^ cast requires that `'1` must outlive `'static`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-05-01 16:51:02 -05:00
|
|
|
|