1 error[E0621]: explicit lifetime required in the type of `x`
2 --> $DIR/closure-bounds-static-cant-capture-borrowed.rs:5:5
5 | --- help: add explicit lifetime `'static` to the type of `x`: `&'static ()`
10 | |______^ lifetime `'static` required
12 error[E0373]: closure may outlive the current function, but it borrows `x`, which is owned by the current function
13 --> $DIR/closure-bounds-static-cant-capture-borrowed.rs:5:9
16 | ^^ may outlive borrowed value `x`
19 | - `x` is borrowed here
21 note: function requires argument type to outlive `'static`
22 --> $DIR/closure-bounds-static-cant-capture-borrowed.rs:5:5
29 help: to force the closure to take ownership of `x` (and any other referenced variables), use the `move` keyword
34 error: aborting due to 2 previous errors
36 Some errors have detailed explanations: E0373, E0621.
37 For more information about an error, try `rustc --explain E0373`.