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

11 lines
117 B
Rust

// run-pass
pub fn main() {
let mut word: u32 = 200000;
word = word - 1;
assert_eq!(word, 199999);
}