summary refs log tree commit diff
path: root/src/test/compile-fail/issue-3021-b.rs
blob: 1fca75f23dc14d2a28f0ad979911aba6448d21f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern mod std;

fn siphash(k0 : u64) {

    struct siphash {
        mut v0: u64,
    }

    impl siphash {
        fn reset() {
           self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR attempted dynamic environment-capture
           //~^ ERROR unresolved name: k0
        }
    }
}

fn main() {}