rust/src/test/compile-fail/issue-3021-b.rs

15 lines
269 B
Rust
Raw Normal View History

use std;
fn siphash(k0 : u64) {
2012-08-15 20:46:55 -05:00
struct siphash {
let mut v0: u64;
fn reset() {
self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR attempted dynamic environment-capture
//~^ ERROR unresolved name: k0
}
}
}
fn main() {}