]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-2324.rs
Auto merge of #95315 - compiler-errors:pointee-fix, r=pnkfelix
[rust.git] / src / tools / rustfmt / tests / target / issue-2324.rs
1 // nested function calls with cast.
2 fn main() {
3     self.ptr
4         .set(intrinsics::arith_offset(self.ptr.get() as *mut u8, 1) as *mut T);
5     self.ptr
6         .set(intrinsics::arith_offset(self.ptr.get(), mem::size_of::<T>() as isize) as *mut u8);
7 }