diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-3021-b.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-3021-b.rs b/src/test/ui/issues/issue-3021-b.rs new file mode 100644 index 000000000..f1630afe1 --- /dev/null +++ b/src/test/ui/issues/issue-3021-b.rs @@ -0,0 +1,14 @@ +fn siphash(k0 : u64) { + + struct SipHash { + v0: u64, + } + + impl SipHash { + pub fn reset(&mut self) { + self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR can't capture dynamic environment + } + } +} + +fn main() {} |