1 error[E0621]: explicit lifetime required in the type of `x`
2 --> $DIR/closure-bounds-static-cant-capture-borrowed.rs:15:5
5 | --- help: add explicit lifetime `'static` to the type of `x`: `&'static ()`
7 LL | | //~^ ERROR explicit lifetime required in the type of `x` [E0621]
10 | |______^ lifetime `'static` required
12 error[E0597]: `x` does not live long enough
13 --> $DIR/closure-bounds-static-cant-capture-borrowed.rs:17:17
16 | -- value captured here
17 LL | //~^ ERROR explicit lifetime required in the type of `x` [E0621]
19 | ^ borrowed value does not live long enough
22 | - `x` dropped here while still borrowed
24 = note: borrowed value must be valid for the static lifetime...
26 error: aborting due to 2 previous errors
28 Some errors occurred: E0597, E0621.
29 For more information about an error, try `rustc --explain E0597`.