error: manual creation of a dangling pointer
  --> tests/ui/manual_dangling_ptr.rs:8:24
   |
LL |     let _: *const u8 = 1 as *const _;
   |                        ^^^^^^^^^^^^^ help: use: `std::ptr::dangling()`
   |
   = note: `-D clippy::manual-dangling-ptr` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::manual_dangling_ptr)]`

error: manual creation of a dangling pointer
  --> tests/ui/manual_dangling_ptr.rs:10:13
   |
LL |     let _ = 2 as *const u32;
   |             ^^^^^^^^^^^^^^^ help: use: `std::ptr::dangling::<u32>()`

error: manual creation of a dangling pointer
  --> tests/ui/manual_dangling_ptr.rs:12:13
   |
LL |     let _ = 4 as *mut f32;
   |             ^^^^^^^^^^^^^ help: use: `std::ptr::dangling_mut::<f32>()`

error: manual creation of a dangling pointer
  --> tests/ui/manual_dangling_ptr.rs:15:13
   |
LL |     let _ = mem::align_of::<u8>() as *const u8;
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `std::ptr::dangling::<u8>()`

error: manual creation of a dangling pointer
  --> tests/ui/manual_dangling_ptr.rs:17:13
   |
LL |     let _ = mem::align_of::<u32>() as *const u32;
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `std::ptr::dangling::<u32>()`

error: manual creation of a dangling pointer
  --> tests/ui/manual_dangling_ptr.rs:19:13
   |
LL |     let _ = mem::align_of::<usize>() as *const usize;
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `std::ptr::dangling::<usize>()`

error: manual creation of a dangling pointer
  --> tests/ui/manual_dangling_ptr.rs:22:9
   |
LL |     foo(4 as *const _, 4 as *mut _);
   |         ^^^^^^^^^^^^^ help: use: `std::ptr::dangling()`

error: manual creation of a dangling pointer
  --> tests/ui/manual_dangling_ptr.rs:22:24
   |
LL |     foo(4 as *const _, 4 as *mut _);
   |                        ^^^^^^^^^^^ help: use: `std::ptr::dangling_mut()`

error: manual creation of a dangling pointer
  --> tests/ui/manual_dangling_ptr.rs:42:9
   |
LL |     foo(4 as *const _, 4 as *mut _);
   |         ^^^^^^^^^^^^^ help: use: `std::ptr::dangling()`

error: manual creation of a dangling pointer
  --> tests/ui/manual_dangling_ptr.rs:42:24
   |
LL |     foo(4 as *const _, 4 as *mut _);
   |                        ^^^^^^^^^^^ help: use: `std::ptr::dangling_mut()`

error: manual creation of a dangling pointer
  --> tests/ui/manual_dangling_ptr.rs:54:28
   |
LL |     let _ = unsafe { &mut *(1 as *mut Empty) };
   |                            ^^^^^^^^^^^^^^^^^ help: use: `std::ptr::dangling_mut::<Empty>()`

error: aborting due to 11 previous errors

