]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/bindings.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / impl-trait / bindings.stderr
1 error[E0434]: can't capture dynamic environment in a fn item
2   --> $DIR/bindings.rs:4:29
3    |
4 LL |     const foo: impl Clone = x;
5    |                             ^
6    |
7    = help: use the `|| { ... }` closure form instead
8
9 error[E0434]: can't capture dynamic environment in a fn item
10   --> $DIR/bindings.rs:10:33
11    |
12 LL |         const foo: impl Clone = x;
13    |                                 ^
14    |
15    = help: use the `|| { ... }` closure form instead
16
17 error[E0434]: can't capture dynamic environment in a fn item
18   --> $DIR/bindings.rs:17:33
19    |
20 LL |         const foo: impl Clone = x;
21    |                                 ^
22    |
23    = help: use the `|| { ... }` closure form instead
24
25 error[E0434]: can't capture dynamic environment in a fn item
26   --> $DIR/bindings.rs:24:33
27    |
28 LL |         const foo: impl Clone = x;
29    |                                 ^
30    |
31    = help: use the `|| { ... }` closure form instead
32
33 error: aborting due to 4 previous errors
34
35 For more information about this error, try `rustc --explain E0434`.