blob: c5bcad6f4dfcfaa42409200a1662a6fa61a6afdf [file] [log] [blame]
error: casting the result of `as_ptr` to *mut i8
--> tests/ui/as_ptr_cast_mut_unfixable.rs:14:22
|
LL | let _: *mut i8 = string.as_ptr() as *mut _;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ 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