1 error[E0434]: can't capture dynamic environment in a fn item
2 --> $DIR/bindings.rs:4:29
4 LL | const foo: impl Clone = x;
7 = help: use the `|| { ... }` closure form instead
9 error[E0434]: can't capture dynamic environment in a fn item
10 --> $DIR/bindings.rs:10:33
12 LL | const foo: impl Clone = x;
15 = help: use the `|| { ... }` closure form instead
17 error[E0434]: can't capture dynamic environment in a fn item
18 --> $DIR/bindings.rs:17:33
20 LL | const foo: impl Clone = x;
23 = help: use the `|| { ... }` closure form instead
25 error[E0434]: can't capture dynamic environment in a fn item
26 --> $DIR/bindings.rs:24:33
28 LL | const foo: impl Clone = x;
31 = help: use the `|| { ... }` closure form instead
33 error: aborting due to 4 previous errors
35 For more information about this error, try `rustc --explain E0434`.