]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/methods/auxiliary/method_self_arg1.rs
3 static mut COUNT
: u64 = 1;
5 pub fn get_count() -> u64 { unsafe { COUNT }
}
11 pub fn foo(self, x
: &Foo
) {
12 unsafe { COUNT *= 2; }
13 // Test internal call.
20 Foo
::qux(Box
::new(self));
21 Foo
::qux(Box
::new(*x
));
25 unsafe { COUNT *= 3; }
29 unsafe { COUNT *= 5; }
32 pub fn qux(self: Box
<Foo
>) {
33 unsafe { COUNT *= 7; }