fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0621]: explicit lifetime required in the type of `x` 2 --> $DIR/regions-proc-bound-capture.rs:9:5 3 | 4LL | fn static_proc(x: &isize) -> Box<dyn FnMut()->(isize) + 'static> { 5 | ------ help: add explicit lifetime `'static` to the type of `x`: `&'static isize` 6LL | // This is illegal, because the region bound on `proc` is 'static. 7LL | Box::new(move|| { *x }) 8 | ^^^^^^^^^^^^^^^^^^^^^^^ lifetime `'static` required 9 10error: aborting due to previous error 11 12For more information about this error, try `rustc --explain E0621`.