mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +00:00
15 lines
244 B
Rust
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() {}
|