2024-07-07 04:44:27 -05:00
|
|
|
error: `as` casting between raw pointers without changing their constness
|
2024-04-02 08:04:25 -05:00
|
|
|
--> tests/ui/crashes/ice-12616.rs:6:5
|
|
|
|
|
|
|
|
|
LL | s() as *const ();
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: try `pointer::cast`, a safer alternative: `s().cast::<()>()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::ptr-as-ptr` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::ptr_as_ptr)]`
|
|
|
|
|
2024-04-13 01:35:44 -05:00
|
|
|
error: aborting due to 1 previous error
|
2024-04-02 08:04:25 -05:00
|
|
|
|