summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-54779-anon-static-lifetime.stderr
blob: 64ad7a21a3c5af8b63153370a59998a5152ec2ce (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 previous error