blob: 7f974de9da8ea1e0571408e371e0b411ffab3de2 [file] [log] [blame]
error[E0434]: can't capture dynamic environment in a fn item
--> $DIR/issue-3668.rs:8:34
|
LL | static childVal: Box<P> = self.child.get();
| ^^^^
|
= help: use the `|| { ... }` closure form instead
error: aborting due to previous error
For more information about this error, try `rustc --explain E0434`.