summaryrefslogtreecommitdiffstats
path: root/tests/ui/binop/issue-77910-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/binop/issue-77910-1.rs')
-rw-r--r--tests/ui/binop/issue-77910-1.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/binop/issue-77910-1.rs b/tests/ui/binop/issue-77910-1.rs
new file mode 100644
index 000000000..95bbd6a60
--- /dev/null
+++ b/tests/ui/binop/issue-77910-1.rs
@@ -0,0 +1,11 @@
+fn foo(s: &i32) -> &i32 {
+ let xs;
+ xs
+}
+fn main() {
+ let y;
+ // we shouldn't ice with the bound var here.
+ assert_eq!(foo, y);
+ //~^ ERROR binary operation `==` cannot be applied to type
+ //~| ERROR `for<'a> fn(&'a i32) -> &'a i32 {foo}` doesn't implement `Debug`
+}