summaryrefslogtreecommitdiffstats
path: root/tests/ui/chalkify/arithmetic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/chalkify/arithmetic.rs')
-rw-r--r--tests/ui/chalkify/arithmetic.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/chalkify/arithmetic.rs b/tests/ui/chalkify/arithmetic.rs
new file mode 100644
index 000000000..6c78a71b0
--- /dev/null
+++ b/tests/ui/chalkify/arithmetic.rs
@@ -0,0 +1,20 @@
+// check-pass
+// compile-flags: -Z trait-solver=chalk
+
+fn main() {
+ 1 + 2;
+ 3 * 6;
+ 2 - 5;
+ 17 / 6;
+ 23 % 11;
+ 4 & 6;
+ 7 | 15;
+ 4 << 7;
+ 123 >> 3;
+ 1 == 2;
+ 5 != 5;
+ 6 < 2;
+ 7 > 11;
+ 3 <= 1;
+ 9 >= 14;
+}