]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/u32-decr.rs
Rollup merge of #97908 - iago-lito:stabilize_nonzero_checked_ops_constness, r=scottmcm
[rust.git] / src / test / ui / numbers-arithmetic / u32-decr.rs
1 // run-pass
2
3
4
5
6 pub fn main() {
7     let mut word: u32 = 200000;
8     word = word - 1;
9     assert_eq!(word, 199999);
10 }