summaryrefslogtreecommitdiffstats
path: root/tests/ui/binop/binop-logic-int.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/binop/binop-logic-int.stderr')
-rw-r--r--tests/ui/binop/binop-logic-int.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/binop/binop-logic-int.stderr b/tests/ui/binop/binop-logic-int.stderr
new file mode 100644
index 000000000..50d857cd9
--- /dev/null
+++ b/tests/ui/binop/binop-logic-int.stderr
@@ -0,0 +1,15 @@
+error[E0308]: mismatched types
+ --> $DIR/binop-logic-int.rs:1:21
+ |
+LL | fn main() { let x = 1 && 2; }
+ | ^ expected `bool`, found integer
+
+error[E0308]: mismatched types
+ --> $DIR/binop-logic-int.rs:1:26
+ |
+LL | fn main() { let x = 1 && 2; }
+ | ^ expected `bool`, found integer
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0308`.