blob: 92298c6617ff5d8324be6fb02536f9fcb9559508 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
error: lifetime may not live long enough
--> $DIR/issue-54779-anon-static-lifetime.rs:32:24
|
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`
error: aborting due to 1 previous error
|