]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-3021.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / resolve / issue-3021.rs
1 trait SipHash {
2     fn reset(&self);
3 }
4
5 fn siphash(k0 : u64) {
6     struct SipState {
7         v0: u64,
8     }
9
10     impl SipHash for SipState {
11         fn reset(&self) {
12            self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR can't capture dynamic environment
13         }
14     }
15     panic!();
16 }
17
18 fn main() {}