]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3021-d.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-3021-d.stderr
1 error[E0434]: can't capture dynamic environment in a fn item
2   --> $DIR/issue-3021-d.rs:21:23
3    |
4 LL |             self.v0 = k0 ^ 0x736f6d6570736575;
5    |                       ^^
6    |
7    = help: use the `|| { ... }` closure form instead
8
9 error[E0434]: can't capture dynamic environment in a fn item
10   --> $DIR/issue-3021-d.rs:22:23
11    |
12 LL |             self.v1 = k1 ^ 0x646f72616e646f6d;
13    |                       ^^
14    |
15    = help: use the `|| { ... }` closure form instead
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0434`.