1 error: use of `offset` with a `usize` casted to an `isize`
2 --> $DIR/ptr_offset_with_cast.rs:12:9
4 LL | ptr.offset(offset_usize as isize);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr.add(offset_usize)`
7 = note: `-D clippy::ptr-offset-with-cast` implied by `-D warnings`
9 error: use of `wrapping_offset` with a `usize` casted to an `isize`
10 --> $DIR/ptr_offset_with_cast.rs:16:9
12 LL | ptr.wrapping_offset(offset_usize as isize);
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr.wrapping_add(offset_usize)`
15 error: aborting due to 2 previous errors