rust/tests/ui/issues/issue-3021-b.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
244 B
Rust
Raw Normal View History

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() {}