summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-102964.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-102964.rs')
-rw-r--r--tests/ui/issues/issue-102964.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-102964.rs b/tests/ui/issues/issue-102964.rs
new file mode 100644
index 000000000..43ff23600
--- /dev/null
+++ b/tests/ui/issues/issue-102964.rs
@@ -0,0 +1,10 @@
+use std::rc::Rc;
+type Foo<'a, T> = &'a dyn Fn(&T);
+type RcFoo<'a, T> = Rc<Foo<'a, T>>;
+
+fn bar_function<T>(function: Foo<T>) -> RcFoo<T> {
+ //~^ ERROR mismatched types
+ let rc = Rc::new(function);
+}
+
+fn main() {}