]>
Commit | Line | Data |
---|---|---|
8faf50e0 XL |
1 | error: unsatisfied lifetime constraints |
2 | --> $DIR/issue-48238.rs:21:13 | |
0531ce1d | 3 | | |
8faf50e0 | 4 | LL | move || use_val(&orig); //~ ERROR |
b7449926 XL |
5 | | ------- ^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2` |
6 | | | | | |
7 | | | return type of closure is &'2 u8 | |
8 | | lifetime `'1` represents this closure's body | |
9 | | | |
10 | = note: closure implements `Fn`, so references to captured variables can't escape the closure | |
0531ce1d XL |
11 | |
12 | error: aborting due to previous error | |
13 |