summaryrefslogtreecommitdiffstats
path: root/tests/ui/binop/binop-logic-int.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/binop/binop-logic-int.rs')
-rw-r--r--tests/ui/binop/binop-logic-int.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/binop/binop-logic-int.rs b/tests/ui/binop/binop-logic-int.rs
new file mode 100644
index 000000000..e71daa2dd
--- /dev/null
+++ b/tests/ui/binop/binop-logic-int.rs
@@ -0,0 +1,3 @@
+fn main() { let x = 1 && 2; }
+//~^ ERROR mismatched types
+//~| ERROR mismatched types