rust/tests/ui/issues/issue-3021-b.rs
2023-01-11 09:32:08 +00:00

15 lines
244 B
Rust

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() {}