]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0521]: borrowed data escapes outside of closure |
94222f64 | 2 | --> $DIR/issue-78262.rs:14:26 |
1b1a35ee XL |
3 | | |
4 | LL | let f = |x: &dyn TT| x.func(); | |
5 | | - ^^^^^^^^ `x` escapes the closure body here | |
6 | | | | |
7 | | `x` is a reference that is only valid in the closure body | |
8 | ||
9 | error: aborting due to previous error | |
10 | ||
5869c6ff | 11 | For more information about this error, try `rustc --explain E0521`. |