summary refs log tree commit diff
path: root/src/test/ui/impl-trait/bindings.stderr
blob: 70a736d2fd18a075d90df51d8d6bd66124d9d250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
error[E0434]: can't capture dynamic environment in a fn item
  --> $DIR/bindings.rs:14:29
   |
LL |     const foo: impl Clone = x;
   |                             ^
   |
   = help: use the `|| { ... }` closure form instead

error[E0434]: can't capture dynamic environment in a fn item
  --> $DIR/bindings.rs:19:33
   |
LL |         const foo: impl Clone = x;
   |                                 ^
   |
   = help: use the `|| { ... }` closure form instead

error[E0434]: can't capture dynamic environment in a fn item
  --> $DIR/bindings.rs:25:33
   |
LL |         const foo: impl Clone = x;
   |                                 ^
   |
   = help: use the `|| { ... }` closure form instead

error[E0434]: can't capture dynamic environment in a fn item
  --> $DIR/bindings.rs:31:33
   |
LL |         const foo: impl Clone = x;
   |                                 ^
   |
   = help: use the `|| { ... }` closure form instead

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0434`.