]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.stderr
Don't suggest adding `'static` lifetime to arguments
[rust.git] / src / test / ui / closures / closure-bounds-static-cant-capture-borrowed.stderr
index f50c3e3b531590d98942c01931332dfe5e99e097..a9add6184f13eab5f969eee592ffe031b1b3ed9c 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(|| {
    |     ^^^ lifetime `'static` required