blob: 9211b24d81f47da476652fac4fdb81b2d85f4057 (
plain)
1
2
3
4
5
6
7
|
// nested function calls with cast.
fn main() {
self.ptr
.set(intrinsics::arith_offset(self.ptr.get() as *mut u8, 1) as *mut T);
self.ptr
.set(intrinsics::arith_offset(self.ptr.get(), mem::size_of::<T>() as isize) as *mut u8);
}
|