about summary refs log tree commit diff
path: root/tests/ui/numbers-arithmetic/u32-decr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/numbers-arithmetic/u32-decr.rs')
-rw-r--r--tests/ui/numbers-arithmetic/u32-decr.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/numbers-arithmetic/u32-decr.rs b/tests/ui/numbers-arithmetic/u32-decr.rs
new file mode 100644
index 00000000000..d9e09781877
--- /dev/null
+++ b/tests/ui/numbers-arithmetic/u32-decr.rs
@@ -0,0 +1,10 @@
+// run-pass
+
+
+
+
+pub fn main() {
+    let mut word: u32 = 200000;
+    word = word - 1;
+    assert_eq!(word, 199999);
+}