]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/issue-78262.base.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / regions / issue-78262.base.stderr
CommitLineData
1b1a35ee 1error[E0521]: borrowed data escapes outside of closure
923072b8 2 --> $DIR/issue-78262.rs:12:26
1b1a35ee
XL
3 |
4LL | let f = |x: &dyn TT| x.func();
c295e0f8
XL
5 | - - ^^^^^^^^
6 | | | |
7 | | | `x` escapes the closure body here
8 | | | argument requires that `'1` must outlive `'static`
9 | | let's call the lifetime of this reference `'1`
1b1a35ee
XL
10 | `x` is a reference that is only valid in the closure body
11
12error: aborting due to previous error
13
5869c6ff 14For more information about this error, try `rustc --explain E0521`.