]> git.lizzy.rs Git - rust.git/blob - tests/ui/zero_offset.rs
iterate List by value
[rust.git] / tests / ui / zero_offset.rs
1 fn main() {
2     unsafe {
3         let x = &() as *const ();
4         x.offset(0);
5         x.wrapping_add(0);
6         x.sub(0);
7         x.wrapping_sub(0);
8
9         let y = &1 as *const u8;
10         y.offset(0);
11     }
12 }