about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/as_ptr_cast_mut.stderr
blob: fa9fb23e2d00b2138d461ffc959e2c8e1f3b0461 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: casting the result of `as_ptr` to *mut u8
  --> tests/ui/as_ptr_cast_mut.rs:21:13
   |
LL |     let _ = string.as_ptr() as *mut u8;
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `string.as_mut_ptr()`
   |
   = note: `-D clippy::as-ptr-cast-mut` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::as_ptr_cast_mut)]`

error: aborting due to 1 previous error