mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +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() {}
|