We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bba6dda + 25a2cf6 commit 3de450bCopy full SHA for 3de450b
src/test/ui/type-alias-impl-trait/issue-53096.rs
@@ -0,0 +1,9 @@
1
+// check-pass
2
+#![feature(const_fn)]
3
+#![feature(type_alias_impl_trait)]
4
+
5
+type Foo = impl Fn() -> usize;
6
+const fn bar() -> Foo { || 0usize }
7
+const BAZR: Foo = bar();
8
9
+fn main() {}
0 commit comments