fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
565 B12 linesraw
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`.