LL | box 3;
| ^
-error[E0507]: cannot move out of static item
+error[E0507]: cannot move out of static item `x`
--> $DIR/check-static-values-constraints.rs:116:45
|
LL | let y = { static x: Box<isize> = box 3; x };
| ^
| |
- | cannot move out of static item
+ | move occurs because `x` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
| help: consider borrowing here: `&x`
error[E0010]: allocations are not allowed in statics