summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-66667-function-cmp-cycle.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-66667-function-cmp-cycle.rs')
-rw-r--r--src/test/ui/issues/issue-66667-function-cmp-cycle.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-66667-function-cmp-cycle.rs b/src/test/ui/issues/issue-66667-function-cmp-cycle.rs
new file mode 100644
index 000000000..7b025be11
--- /dev/null
+++ b/src/test/ui/issues/issue-66667-function-cmp-cycle.rs
@@ -0,0 +1,16 @@
+fn first() {
+ second == 1 //~ ERROR binary operation
+ //~^ ERROR mismatched types
+}
+
+fn second() {
+ first == 1 //~ ERROR binary operation
+ //~^ ERROR mismatched types
+}
+
+fn bar() {
+ bar == 1 //~ ERROR binary operation
+ //~^ ERROR mismatched types
+}
+
+fn main() {}