mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
13 lines
215 B
Rust
13 lines
215 B
Rust
|
fn main() {
|
||
|
unsafe {
|
||
|
let x = &() as *const ();
|
||
|
x.offset(0);
|
||
|
x.wrapping_add(0);
|
||
|
x.sub(0);
|
||
|
x.wrapping_sub(0);
|
||
|
|
||
|
let y = &1 as *const u8;
|
||
|
y.offset(0);
|
||
|
}
|
||
|
}
|