]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/methods/auxiliary/method_self_arg1.rs
3 #![feature(box_syntax)]
5 static mut COUNT
: u64 = 1;
7 pub fn get_count() -> u64 { unsafe { COUNT }
}
13 pub fn foo(self, x
: &Foo
) {
14 unsafe { COUNT *= 2; }
15 // Test internal call.
27 unsafe { COUNT *= 3; }
31 unsafe { COUNT *= 5; }
34 pub fn qux(self: Box
<Foo
>) {
35 unsafe { COUNT *= 7; }