2013-03-07 03:09:17 +00:00
|
|
|
trait SipHash {
|
2013-03-13 02:32:14 +00:00
|
|
|
fn reset(&self);
|
2012-07-26 21:04:03 +00:00
|
|
|
}
|
|
|
|
|
2015-12-11 07:59:11 +00:00
|
|
|
fn siphash(k0 : u64) {
|
2013-03-07 03:09:17 +00:00
|
|
|
struct SipState {
|
|
|
|
v0: u64,
|
|
|
|
}
|
2012-07-26 21:04:03 +00:00
|
|
|
|
2013-03-07 03:09:17 +00:00
|
|
|
impl SipHash for SipState {
|
2013-03-13 02:32:14 +00:00
|
|
|
fn reset(&self) {
|
2013-07-01 17:47:43 +00:00
|
|
|
self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR can't capture dynamic environment
|
2012-07-26 21:04:03 +00:00
|
|
|
}
|
|
|
|
}
|
2014-10-09 19:17:22 +00:00
|
|
|
panic!();
|
2012-07-26 21:04:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|