]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-48238.stderr
Auto merge of #105121 - oli-obk:simpler-cheaper-dump_mir, r=nnethercote
[rust.git] / src / test / ui / nll / issue-48238.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-48238.rs:9:13
3    |
4 LL |     move || use_val(&orig);
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
11
12 error: aborting due to previous error
13