summaryrefslogtreecommitdiffstats
path: root/src/test/ui/numbers-arithmetic/u32-decr.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/numbers-arithmetic/u32-decr.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/numbers-arithmetic/u32-decr.rs b/src/test/ui/numbers-arithmetic/u32-decr.rs
new file mode 100644
index 000000000..d9e097818
--- /dev/null
+++ b/src/test/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);
+}