summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-3021-b.rs
blob: f1630afe1730e1f03f720d2b788912bc076df57a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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() {}