]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.stderr
Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-se
[rust.git] / src / test / ui / closures / closure-bounds-static-cant-capture-borrowed.stderr
1 error[E0621]: explicit lifetime required in the type of `x`
2   --> $DIR/closure-bounds-static-cant-capture-borrowed.rs:5:5
3    |
4 LL |     bar(|| {
5    |     ^^^ lifetime `'static` required
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0621`.