summaryrefslogtreecommitdiffstats
path: root/src/test/ui/numbers-arithmetic/div-mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/numbers-arithmetic/div-mod.rs')
-rw-r--r--src/test/ui/numbers-arithmetic/div-mod.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/ui/numbers-arithmetic/div-mod.rs b/src/test/ui/numbers-arithmetic/div-mod.rs
deleted file mode 100644
index acb92a7df..000000000
--- a/src/test/ui/numbers-arithmetic/div-mod.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// run-pass
-
-
-
-
-pub fn main() {
- let x: isize = 15;
- let y: isize = 5;
- assert_eq!(x / 5, 3);
- assert_eq!(x / 4, 3);
- assert_eq!(x / 3, 5);
- assert_eq!(x / y, 3);
- assert_eq!(15 / y, 3);
- assert_eq!(x % 5, 0);
- assert_eq!(x % 4, 3);
- assert_eq!(x % 3, 0);
- assert_eq!(x % y, 0);
- assert_eq!(15 % y, 0);
-}