We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05a5895 commit 315a3b9Copy full SHA for 315a3b9
src/test/ui/consts/const-eval/issue-70804-fn-subtyping.rs
@@ -0,0 +1,10 @@
1
+// check-pass
2
+#![feature(const_fn)]
3
+
4
+const fn nested(x: (for<'a> fn(&'a ()), String)) -> (fn(&'static ()), String) {
5
+ x
6
+}
7
8
+pub const TEST: (fn(&'static ()), String) = nested((|_x| (), String::new()));
9
10
+fn main() {}
0 commit comments