rust/tests/ui/numbers-arithmetic/u32-decr.rs
2024-02-16 20:02:50 +00:00

11 lines
118 B
Rust

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