Skip to content

Commit

Permalink
Fix ptr offset tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Aug 31, 2018
1 parent 20dfaf7 commit 9abf6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ui/ptr_offset_with_cast.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error: use of `offset` with a `usize` casted to an `isize`
10 | ptr.offset(offset_usize as isize);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr.add(offset_usize)`
|
= note: `-D ptr-offset-with-cast` implied by `-D warnings`
= 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:14:9
Expand Down

0 comments on commit 9abf6fc

Please sign in to comment.