We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81bb5a5 commit 6a0c97aCopy full SHA for 6a0c97a
src/test/ui/consts/not_const_clusure_in_const.rs
@@ -0,0 +1,9 @@
1
+// run-pass
2
+
3
+const _FOO: fn() -> String = || "foo".into();
4
5
+pub fn bar() -> fn() -> String {
6
+ || "bar".into()
7
+}
8
9
+fn main(){}
0 commit comments