mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-04 18:40:18 +00:00
21 lines
405 B
Rust
21 lines
405 B
Rust
//@run-rustfix
|
|
|
|
#![feature(lang_items, start, libc)]
|
|
#![no_std]
|
|
#![deny(clippy::zero_ptr)]
|
|
|
|
#[start]
|
|
fn main(_argc: isize, _argv: *const *const u8) -> isize {
|
|
let _ = 0 as *const usize;
|
|
let _ = 0 as *mut f64;
|
|
let _: *const u8 = 0 as *const _;
|
|
0
|
|
}
|
|
|
|
#[panic_handler]
|
|
fn panic(_info: &core::panic::PanicInfo) -> ! {
|
|
loop {}
|
|
}
|
|
|
|
#[lang = "eh_personality"]
|
|
extern "C" fn eh_personality() {}
|