summaryrefslogtreecommitdiffstats
path: root/src/test/ui/numbers-arithmetic/u8-incr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/numbers-arithmetic/u8-incr.rs')
-rw-r--r--src/test/ui/numbers-arithmetic/u8-incr.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/numbers-arithmetic/u8-incr.rs b/src/test/ui/numbers-arithmetic/u8-incr.rs
new file mode 100644
index 000000000..5242acf5b
--- /dev/null
+++ b/src/test/ui/numbers-arithmetic/u8-incr.rs
@@ -0,0 +1,15 @@
+// run-pass
+
+
+
+
+pub fn main() {
+ let mut x: u8 = 12;
+ let y: u8 = 12;
+ x = x + 1;
+ x = x - 1;
+ assert_eq!(x, y);
+ // x = 14;
+ // x = x + 1;
+
+}