rust/tests/ui/numbers-arithmetic/i8-incr.rs
2023-01-11 09:32:08 +00:00

13 lines
132 B
Rust

// run-pass
pub fn main() {
let mut x: i8 = -12;
let y: i8 = -12;
x = x + 1;
x = x - 1;
assert_eq!(x, y);
}