rust/tests/ui/nll/issue-54779-anon-static-lifetime.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
358 B
Plaintext
Raw Normal View History

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`
error: aborting due to 1 previous error
2022-05-01 16:51:02 -05:00