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