]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/ptr_offset_with_cast.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / ptr_offset_with_cast.stderr
index c9bd4d79460f3c97c94a14e301daba645d6b1f32..b5c7a03e2775e8ff55d60d168eeddcb7da2cb97a 100644 (file)
@@ -1,15 +1,15 @@
 error: use of `offset` with a `usize` casted to an `isize`
-  --> $DIR/ptr_offset_with_cast.rs:19:9
+  --> $DIR/ptr_offset_with_cast.rs:12:9
    |
-19 |         ptr.offset(offset_usize as isize);
+LL |         ptr.offset(offset_usize as isize);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr.add(offset_usize)`
    |
    = note: `-D clippy::ptr-offset-with-cast` implied by `-D warnings`
 
 error: use of `wrapping_offset` with a `usize` casted to an `isize`
-  --> $DIR/ptr_offset_with_cast.rs:23:9
+  --> $DIR/ptr_offset_with_cast.rs:16:9
    |
-23 |         ptr.wrapping_offset(offset_usize as isize);
+LL |         ptr.wrapping_offset(offset_usize as isize);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr.wrapping_add(offset_usize)`
 
 error: aborting due to 2 previous errors