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