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
362 B
Plaintext
Raw Normal View History

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