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

16 lines
164 B
Rust

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