]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.nll.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / closures / closure-bounds-static-cant-capture-borrowed.nll.stderr
index 1d12e2f585e8d020737a59b1ca3e1680e1c20fbc..1b0e0902d67ba3fe88cf9fe345b41d64071c2015 100644 (file)
@@ -1,8 +1,6 @@
 error[E0621]: explicit lifetime required in the type of `x`
   --> $DIR/closure-bounds-static-cant-capture-borrowed.rs:5:5
    |
-LL |   fn foo(x: &()) {
-   |             --- help: add explicit lifetime `'static` to the type of `x`: `&'static ()`
 LL | /     bar(|| {
 LL | |
 LL | |         let _ = x;