mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			303 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			303 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| trait SipHash {
 | |
|     fn reset(&self);
 | |
| }
 | |
| 
 | |
| fn siphash(k0 : u64) {
 | |
|     struct SipState {
 | |
|         v0: u64,
 | |
|     }
 | |
| 
 | |
|     impl SipHash for SipState {
 | |
|         fn reset(&self) {
 | |
|            self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR can't capture dynamic environment
 | |
|         }
 | |
|     }
 | |
|     panic!();
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
