summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-41298.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-41298.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-41298.rs b/src/test/ui/issues/issue-41298.rs
new file mode 100644
index 000000000..a1b4de39b
--- /dev/null
+++ b/src/test/ui/issues/issue-41298.rs
@@ -0,0 +1,8 @@
+// check-pass
+#![allow(dead_code)]
+struct Function<T, F> { t: T, f: F }
+
+impl<T, R> Function<T, fn() -> R> { fn foo() { } }
+impl<T, R> Function<T, fn() -> R> { fn bar() { } }
+
+fn main() { }