fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
600 B14 linesraw
1error[E0521]: borrowed data escapes outside of closure
2  --> $DIR/issue-78262.rs:12:26
3   |
4LL |     let f = |x: &dyn TT| x.func();
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`
10   |              `x` is a reference that is only valid in the closure body
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0521`.